@charset "UTF-8";

/* =========================
   FORM AREA (BASE / NEUTRAL)
   ========================= */

.ghFormArea{
  margin: 28px 0 22px;
  padding: 26px 0;
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);

  /* База (без привязки к цвету темы) */
  background:
    radial-gradient(1200px 360px at 50% 0%, rgba(0,0,0,.04), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.01));
}

.ghFormArea__inner{
  max-width: 600px;
  margin: 0 auto;
}

/* =========================
   GUIDE (TEXT ABOVE FORM)
   ========================= */

.ghFormGuide{
  text-align: center;
  padding: 0 8px;
}

.ghFormGuide__title{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #111;
}

.ghFormGuide__steps{
  margin: 0 auto 14px;
  padding-left: 22px;
  max-width: 820px;
  text-align: left;
  font-size: 18px;
  line-height: 1.9;
  color: #111;
}

.ghFormGuide__note{
  margin: 0 auto 18px;
  max-width: 880px;
  text-align: left;
  font-size: 18px;
  line-height: 1.9;
  color: #111;
}
.ghFormGuide__note strong{ font-weight: 900; }

/* =========================
   CARD
   ========================= */

.ghLeadCard{
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 38px rgba(0,0,0,.16), 0 6px 12px rgba(0,0,0,.08);
}

.ghLeadCard__head{
  /* База — потом будет перекрыта красной темой */
  background: #f1f1f1;
  padding: 22px 18px;
}

.ghLeadCard__headTitle{
  text-align: center;
  color: #111;
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1.15;
}

/* =========================
   FORM GRID
   ========================= */

.ghLeadForm{ padding: 24px 26px 18px; }

.ghLeadForm__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  max-width: 560px;
  margin: 0 auto 18px;
}

.ghF{ display: block; }
.ghF--full{ grid-column: 1 / -1; }

/* label hidden (accessibility) */
.ghF__label{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.ghF__input{
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #cfd6df;
  background: #fff;
  font-size: 17px;
  color: #111;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, transform .05s ease;
}

.ghF__input::placeholder{ color: #7b8794; }

.ghF__input:focus{
  border-color: rgba(0,0,0,.38);
  box-shadow: 0 0 0 4px rgba(0,0,0,.08);
}

.ghF__input:active{ transform: translateY(1px); }

/* invalid helper */
.ghF__input.is-invalid{
  border-color: rgba(190,0,32,.45) !important;
  box-shadow: 0 0 0 4px rgba(190,0,32,.10) !important;
}

/* =========================
   PHONE (PREFIX + INPUT)
   ========================= */

.ghPhone2{
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: stretch;
}

.ghPhone2__prefix{
  height: 56px;
  border: 1px solid #cfd6df;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.ghPhone2__flag{
  width: 20px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.12);
  background: linear-gradient(#fff 0 50%, #dc143c 50% 100%);
}

.ghPhone2__code{
  font-size: 17px;
  font-weight: 800;
  color: #111;
}

.ghPhone2__input{
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

/* =========================
   CTA BUTTON (BASE)
   ========================= */

.ghLeadBtn{
  position: relative;
  display: block;
  width: 100%;
  max-width: 560px; /* ровно под grid */
  margin: 0 auto;
  height: 64px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;

  background: #111;
  color: #fff;

  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
  font-size: 16px;

  box-shadow: 0 12px 20px rgba(0,0,0,.20), 0 6px 10px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  overflow: hidden;
}

.ghLeadBtn__text{ position: relative; z-index: 2; }

.ghLeadBtn__shine{
  position: absolute;
  top: -40%;
  left: -40%;
  width: 55%;
  height: 180%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
  opacity: 0;
  z-index: 1;
  transition: opacity .2s ease;
}

.ghLeadBtn:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(0,0,0,.26), 0 8px 14px rgba(0,0,0,.14);
  filter: brightness(1.02);
}

.ghLeadBtn:hover .ghLeadBtn__shine{
  opacity: 1;
  animation: ghBtnShine 1.15s ease forwards;
}

.ghLeadBtn:active{
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(0,0,0,.18), 0 6px 10px rgba(0,0,0,.12);
  filter: brightness(.98);
}

@keyframes ghBtnShine{
  0%   { transform: translateX(-20%) rotate(18deg); }
  100% { transform: translateX(260%) rotate(18deg); }
}

@media (min-width: 1100px){
  .ghLeadBtn{ animation: ghBtnPulse 3.2s ease-in-out infinite; }
  .ghLeadBtn:hover, .ghLeadBtn:active{ animation: none; }
  @keyframes ghBtnPulse{
    0%,100%{ transform: translateY(0); }
    50%{ transform: translateY(-1px); }
  }
}

.ghLeadFine{
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 12px;
  color: #6f6f6f;
  text-align: center;
}

/* =========================
   STATUS (single definitive block)
   ========================= */

.ghLeadStatus{
  max-width: 560px;
  margin: 12px auto 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: #f7f7f7;
  color: #111;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.ghLeadStatus:empty{
  display: none;
}

.ghLeadStatus.is-ok{
  background: rgba(18,160,84,.10);
  border-color: rgba(18,160,84,.25);
  color: #0b5a2b;
}

.ghLeadStatus.is-err{
  background: rgba(190,0,32,.08);
  border-color: rgba(190,0,32,.22);
  color: #8a0018;
}

/* =========================
   THEME: RED (single override)
   ========================= */

.ghFormArea{
  background:
    radial-gradient(1200px 360px at 50% 0%, rgba(184,0,0,.10), rgba(184,0,0,0) 55%),
    linear-gradient(180deg, rgba(184,0,0,.07), rgba(184,0,0,.04));
}

.ghLeadCard__head{
  background: linear-gradient(180deg, #d40000, #b80000);
}

.ghLeadCard__headTitle{
  color: #fff;
}

.ghF__input:focus{
  border-color: rgba(184,0,0,.65);
  box-shadow: 0 0 0 4px rgba(184,0,0,.18);
}

.ghLeadBtn{
  background: linear-gradient(180deg, #e60000, #b80000);
  color: #fff;
  box-shadow: 0 14px 26px rgba(184,0,0,.35), 0 6px 12px rgba(0,0,0,.14);
}

.ghLeadBtn:hover{
  box-shadow: 0 18px 32px rgba(184,0,0,.42), 0 10px 18px rgba(0,0,0,.18);
  filter: brightness(1.03);
}

.ghLeadBtn:active{
  box-shadow: 0 10px 18px rgba(184,0,0,.30), 0 6px 10px rgba(0,0,0,.16);
  filter: brightness(.98);
}

.ghLeadBtn__shine{
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0));
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 980px){
  .ghFormArea__inner{ max-width: 820px; }
  .ghLeadCard__headTitle{ font-size: 28px; }
  .ghLeadForm__grid{ grid-template-columns: 1fr; }
  .ghF--full{ grid-column: auto; }
  .ghPhone2{ grid-template-columns: 120px 1fr; }
  .ghLeadBtn{ max-width: 560px; }
}

@media (max-width: 820px){
  .ghFormArea{ padding: 18px 0; }
  .ghFormGuide{ text-align: left; padding: 0 6px; }
  .ghFormGuide__title{ font-size: 18px; }

  .ghFormGuide__steps,
  .ghFormGuide__note{
    font-size: 16px;
    line-height: 1.75;
  }

  .ghLeadCard{ border-radius: 12px; }
  .ghLeadCard__head{ padding: 18px 14px; }
  .ghLeadCard__headTitle{ font-size: 22px; }
  .ghLeadForm{ padding: 18px 14px 14px; }
  .ghF__input{ height: 52px; font-size: 16px; }
  .ghPhone2__prefix{ height: 52px; }
  .ghLeadBtn{ height: 58px; font-size: 15px; animation: none; }
}
