/* Telegram service: the same restrained surfaces and spacing as RESPA's store. */
#tgstars { padding-bottom: 34px; }
#tgstars .container { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 12px; }
#tgstars .index__group, #tgstars .index__group2 { gap: 12px; min-width: 0; }
#tgstars .tg-form { --padding-x: clamp(24px,3vw,40px); --padding-y: 34px; padding: var(--padding-y) var(--padding-x); }
.tg-form__heading { display: flex; align-items: center; gap: 17px; margin-bottom: 27px; }
.tg-form__mark { flex: none; width: 58px; height: 58px; }
.tg-form__mark svg { display: block; width: 100%; height: 100%; }
.tg-form__heading h1 { margin: 0; color: #f0f3f1; font: 600 clamp(25px,2.1vw,30px)/1.14 Inter,Arial,sans-serif; letter-spacing: -.035em; }
.tg-form__heading p { margin: 6px 0 0; color: #9ca8aa; font: 400 14px/1.45 Inter,Arial,sans-serif; }
.tg-service-toggle {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid #2b3337;
}
.tg-service-toggle > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 43px;
  padding: 5px 0;
  font: 600 14px/1.25 Inter, Arial, sans-serif;
}
.tg-service-toggle .ui-icon { width: 17px; height: 17px; }
.tg-service-current {
  border-bottom: 2px solid #83d77e;
  color: #edf2ef;
}
.tg-service-current .ui-icon { color: #83d77e; }
.tg-service-unavailable { color: #a3adb8; }
.tg-service-unavailable small { font-size: 11px; font-weight: 400; }
#tgstars .tg-duration-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 10px; color: #e5eae7; font: 600 14px/1.35 Inter,Arial,sans-serif; }
#tgstars .tg-duration-title span:last-child { color: #96a39e; font-size: 12px; font-weight: 400; }
#tgstars .tg-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0; }
#tgstars .tg-preset { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 64px; min-width: 0; padding: 9px 11px; border: 2px solid var(--elements-element-line); border-radius: 10px; background: transparent; color: #b0b5c1; text-align: left; font: 600 14px/1.3 Inter,Arial,sans-serif; cursor: pointer; transition: border-color .18s,background .18s,color .18s; }
#tgstars .tg-preset .sub { margin-top: 5px; color: #9fa9a6; font: 400 12px/1.3 Inter,Arial,sans-serif; white-space: nowrap; }
#tgstars .tg-preset:hover:not(:disabled) { background: #1a211d; border-color: #83bf83; color: #f2f5f2; }
#tgstars .tg-preset.active { background: #171e1a !important; border-color: #637c68 !important; color: #f2f5f2; box-shadow: none; }
#tgstars .tg-preset.active:hover:not(:disabled) { background: #1b241d !important; border-color: #83bf83 !important; }
#tgstars .tg-preset.active > span:first-child { font-weight: 700; }
#tgstars .tg-preset.active .sub { color: #b6c9b7 !important; }
#tgstars .tg-preset:disabled { opacity: .62; cursor: not-allowed; }
#tgstars .tg-preset:active:not(:disabled) { background: #202a22 !important; }
#tgstars .tg-preset:focus-visible, #tgstars .tg-submit:focus-visible, #tgstars .tg-price-state button:focus-visible, #tgstars .tg-consent a:focus-visible { outline: 2px solid #a5e9a1; outline-offset: 3px; }
.tg-price-state { box-sizing: border-box; display: flex; gap: 8px; align-items: center; min-height: 27px; margin: 0 0 8px; padding: 0 2px; color: #aebdb4; font: 13px/1.4 Inter,Arial,sans-serif; }
.tg-price-state[data-state="ready"] { visibility: hidden; }
.tg-price-state[data-state="unavailable"] { color: #d4c6a9; }
.tg-price-state[data-state="error"] { color: #efbeb4; }
.tg-price-state .ui-icon { width: 17px; height: 17px; }
.tg-price-state span { flex: 1; min-width: 0; }
.tg-price-state__action { display: flex; flex: 0 0 auto; justify-content: flex-end; }
.tg-price-state button { padding: 4px 0; border: 0; color: #efc5bc; background: transparent; font: 600 13px/1.3 Inter,Arial,sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tg-fields { display: grid; gap: 16px; margin-top: 20px; }
.tg-field { min-width: 0; }
.tg-field > label { display: inline-block; margin-bottom: 8px; color: #dce4df; font: 600 13px/1.3 Inter,Arial,sans-serif; }
.tg-field__control { position: relative; display: flex; align-items: center; min-height: 64px; border: 2px solid transparent; border-radius: 12px; background: var(--elements-element-line); transition: border-color .18s,background .18s; }
.tg-field__control:hover { background: var(--input-hover); }
.tg-field__control:focus-within { border-color: #72df6e; background: var(--input-hover); }
.tg-field__control > .ui-icon { position: absolute; left: 20px; width: 24px; height: 24px; color: #64df61; pointer-events: none; }
.tg-field__control input { display: block; width: 100%; min-width: 0; height: 60px; padding: 0 18px 0 58px; border: 0; border-radius: 0; outline: 0; appearance: none; -webkit-appearance: none; box-shadow: none; background: transparent; color: #fff; font: 400 16px/1.4 Inter,Arial,sans-serif; }
.tg-field__control input::placeholder { color: #828b98; opacity: 1; }
.tg-field__hint { margin: 7px 0 0; color: #8e9a98; font: 400 12px/1.4 Inter,Arial,sans-serif; }
.tg-field.is-invalid .tg-field__control { border-color: #e87777; }
.tg-error { margin: 7px 0 0; color: #f0a9a0; font: 400 12px/1.4 Inter,Arial,sans-serif; }
.tg-duration-error { margin-top: 8px; }
.tg-presets.is-invalid { outline: 1px solid #dd817a; outline-offset: 4px; border-radius: 9px; }
.tg-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding: 16px 0; border-top: 1px solid #2b3332; border-bottom: 1px solid #2b3332; color: #e1e9e2; font: 600 14px/1.35 Inter,Arial,sans-serif; }
.tg-total small { display: block; margin-top: 3px; color: #96a49b; font-size: 12px; font-weight: 400; }
.tg-total strong { min-width: 10ch; color: #93e38d; font-size: 18px; text-align: right; white-space: nowrap; }
.tg-consent { position: relative; margin: 20px 0; }
.tg-consent input { position: absolute; z-index: 1; top: 1px; left: 0; width: 26px; height: 26px; margin: 0; opacity: 0; cursor: pointer; }
.tg-consent label { display: flex; align-items: flex-start; gap: 12px; color: #c3cbd0; font: 400 13px/1.5 Inter,Arial,sans-serif; cursor: pointer; }
.tg-consent__check { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border: 2px solid transparent; border-radius: 8px; background: var(--elements-element-line); transition: background .18s,border-color .18s; }
.tg-consent__check .ui-icon { width: 17px; height: 17px; color: transparent; transition: color .18s; }
.tg-consent input:checked + label .tg-consent__check .ui-icon { color: #64df61; }
.tg-consent input:focus-visible + label .tg-consent__check { outline: 2px solid #a5e9a1; outline-offset: 3px; }
.tg-consent.is-invalid .tg-consent__check { border-color: #dd817a; }
.tg-consent a { color: #8edb88; text-decoration: none; transition: color .18s; }
.tg-consent a:hover { color: #b0f1a9; text-decoration: underline; }
.tg-consent-error { margin: -12px 0 14px 38px; }
.tg-form__feedback { padding: 11px 13px; margin: 0 0 14px; border: 1px solid #62443e; border-radius: 9px; background: #291d1c; color: #f0c0b8; font: 400 13px/1.45 Inter,Arial,sans-serif; }
.tg-form__feedback:empty { display: none; }
.tg-submit { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 56px; padding: 14px 20px; border: 1px solid transparent; border-radius: 12px; background: #64df61; color: #091509; font: 700 15px/1.3 Inter,Arial,sans-serif; letter-spacing: .025em; text-transform: uppercase; cursor: pointer; transition: background .2s,transform .2s,box-shadow .2s; }
.tg-submit:hover:not(:disabled) { background: #81e67c; box-shadow: 0 8px 23px rgba(93,210,88,.15); }
.tg-submit:active:not(:disabled) { transform: translateY(1px); }
.tg-submit:disabled { background: #36433b; color: #9aa9a0; cursor: not-allowed; }
.tg-submit.is-busy { opacity: .85; }
#tgstars .tg-pay-methods { padding: 20px var(--global-padding) !important; }
#tgstars .tg-pay-methods p { margin-bottom: 13px; }
#tgstars .tg-pay-methods .PayMethods__services { gap: 18px; }
.tg-side { display: flex; flex-direction: column; }
.tg-visual { position: relative; isolation: isolate; min-height: 420px; flex: 1 1 520px; overflow: hidden; border: 1px solid #2b3232; border-radius: 24px; background: #151b1b; }
.tg-visual__art { position: absolute; z-index: -2; inset: 0; background: #151b1b url('/assets/images/respa-premium.webp') center 40% / cover no-repeat; filter: saturate(.65) brightness(.82); animation: tg-art-drift 24s ease-in-out infinite alternate; }
.tg-visual:after { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(180deg,rgba(12,16,18,.83) 0%,rgba(12,16,18,.08) 39%,rgba(12,16,18,.12) 100%); pointer-events: none; }
@keyframes tg-art-drift { from { transform: scale(1); } to { transform: scale(1.035); } }
#tgstars [hidden] { display: none !important; }
@media(max-width:1023px) {
  #tgstars .container { grid-template-columns: minmax(0,1fr); }
  #tgstars .index__group, #tgstars .index__group2 { max-width: 720px; }
  .tg-visual { flex: none; min-height: 360px; }
}
@media(max-width:600px) {
  #tgstars .tg-form { --padding-x: 22px; --padding-y: 25px; }
  .tg-form__heading { gap: 13px; margin-bottom: 23px; }
  .tg-form__mark { width: 48px; height: 48px; }
  .tg-form__heading p { font-size: 13px; }
  .tg-service-toggle { gap: 15px; }
  #tgstars .tg-presets { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #tgstars .tg-pay-methods { padding: 20px 22px !important; }
  .tg-visual { min-height: 275px; }
}
@media(max-width:639px) {
  .tg-field__control { min-height: 60px; }
  .tg-field__control input { height: 56px; }
}
@media(prefers-reduced-motion:reduce) { .tg-visual__art { animation: none; } #tgstars *, #tgstars *:before, #tgstars *:after { transition-duration: .01ms !important; } }

.tg-form__feedback:has(+ .tg-submit.is-busy) { border-color: #3f5d45; background: #1a2920; color: #cae4ca; }
/* Field validation stays visible during focus and uses the same compact hint scale. */
#tgstars .tg-field.is-invalid .tg-field__control,#tgstars .tg-field.is-invalid .tg-field__control:hover,#tgstars .tg-field.is-invalid .tg-field__control:focus-within{border-color:#e87777;box-shadow:none}
#tgstars .tg-field.is-invalid .tg-field__control>.ui-icon{color:#e1a099}
#tgstars .tg-form p.tg-error{margin-top:6px;color:#eaa49d;font:400 12px/1.4 Inter,Arial,sans-serif}
#tgstars .tg-form p.tg-consent-error{margin:-12px 0 14px 38px}
#tgstars .tg-form__feedback{font:400 13px/1.45 Inter,Arial,sans-serif}
#tgstars .tg-field__control input:read-only{opacity:.72;cursor:wait}
