/* === MODERN DARK FORM BASE === */
.gv-form {
    max-width: 540px;
    margin: 2rem auto;
    padding: 2.5rem;
    display: grid;
    gap: 1.35rem;
    border-radius: 16px;
    font-family: 'Segoe UI','SF Pro Display',-apple-system,BlinkMacSystemFont,sans-serif;
    /* background: rgba(16,20,27,.72);  solid-enough card to give clear adjacency */
    box-shadow: 0 24px 166px 0 rgb(0 20 60 / 55%), 0 2px 4px 0 rgba(0,0,0,.05);
    border: 1.2px solid #22293d;
    backdrop-filter: blur(24px) saturate(1.2);
    webkit-backdrop-filter: blur(24px) saturate(1.2);
    background: #000;
}

/* === LABELS === */
.gv-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 0.4rem;
  color: #fff;
  letter-spacing: .01em;
  margin-bottom: 0.15rem;
}

/* === INPUTS / TEXTAREA / SELECT === */
.gv-form input,
.gv-form textarea,
.gv-form select {
  padding: 0.88rem 1.2rem;
  border: 1.5px solid #8aa2be;   /* ≥3:1 vs #15181d */
  border-radius: 8px;

  color: #000000;
  font-size: 1rem;
  transition: border .23s, background .23s, box-shadow .22s;
  box-shadow: none;
}

.gv-form input::placeholder,
.gv-form textarea::placeholder {
  color: #aeb9c6;                /* ≥4.5:1 vs #15181d */
  opacity: 1;
}

.gv-form input:hover,
.gv-form textarea:hover,
.gv-form select:hover {
  border-color: #9bb1cc;
}

.gv-form input:focus,
.gv-form textarea:focus,
.gv-form select:focus {
  outline: 2px solid #198cff;
  outline-offset: 2px;
  border-color: #198cff;
  background: #1d2129!important;           /* dark bg for contrast */
  color: #fff;
  box-shadow: 0 0 0 2px rgba(25,140,255,.28);
}

.gv-form textarea {
  min-height: 120px;
  resize: vertical;
}

.gv-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5b1' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

/* === INPUT ICON SLOT === */
.gv-form .input-icon { position: relative; }
.gv-form .input-icon svg {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #198cff;
  pointer-events: none; opacity: .82;
}
.gv-form input.input-with-icon { padding-left: 2.4rem; }

/* === BUTTON === */
.gv-form button {
  padding: 0.93rem 1.9rem;
  background: linear-gradient(135deg, #0060ff, #0048cc 85%);
  color: #fff;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.07rem;
  letter-spacing: 0.03em;
  transition: all 0.23s cubic-bezier(.77,0,.175,1);
  box-shadow: 0 4px 12px rgba(0, 96, 255, 0.17);
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.gv-form button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 96, 255, 0.27);
  background: linear-gradient(135deg, #198cff, #0048cc 80%);
}

.gv-form button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 96, 255, 0.13);
}
.gv-form button:disabled { opacity: 0.7; cursor: wait; }

/* === LOADING STATE === */
.gv-form button.loading { color: transparent !important; }
.gv-form button.loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  top: 50%; left: 50%;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255,255,255,0.23);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.85s linear infinite;
  filter: blur(0.3px);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === STATUS MESSAGES === */
.gv-resp {
  margin-top: 1rem;
  padding: 1.12rem 1rem;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1.55;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.77,0,.175,1), min-height 0.3s;
  background: transparent;
  border: none;
}

.gv-resp.success, .gv-resp.error { opacity: 1; pointer-events: auto; min-height: 52px; }
.gv-resp.success {
  background: linear-gradient(90deg,#0f5132 0,#1b8135 100%);
  border: 1.2px solid #198754;
  color: #eafbe8;
  box-shadow: 0 0 10px #1b813544;
}
.gv-resp.error {
  background: linear-gradient(90deg,#661010 0,#912020 100%);
  border: 1.2px solid #e53e3e;
  color: #fff;
  box-shadow: 0 0 10px #91202044;
}

/* === CHECKBOX === */
.gv-form .checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0.2rem 0;
}
.gv-form .checkbox-container input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid #8aa2be;  /* ≥3:1 */
  background: #0f1318;
  transition: border .22s, box-shadow .18s;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.gv-form .checkbox-container input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #0060ff 70%, #0048cc 100%);
  border-color: #0060ff;
}
.gv-form .checkbox-container input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  position: absolute;
  left: 6px; top: 3px;
  width: 7px; height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  border-radius: 1.5px;
  transform: rotate(45deg) scale(1.1);
}
.gv-form .checkbox-container input[type="checkbox"]:focus-visible {
  outline: 2px solid #198cff;
  outline-offset: 2px;
}

/* === reCAPTCHA badge === */
.grecaptcha-badge { display:none !important; }

/* === NOTE TEXT === */
.gv-recap-note {
  display: block;
  margin-top: 0.5rem;
  font-size: 11px;
  opacity: .62;
  color: #b2bfdc;
}

/* === MOBILE === */
@media (max-width: 600px) {
  .gv-form {
    padding: 1.1rem;
    gap: 0.82rem;
    border-radius: 10px;
    max-width: 98vw;
  }
  .gv-form input, .gv-form textarea, .gv-form select {
    font-size: 17px;
    padding: 0.7rem 1rem;
  }
  .gv-form button {
    padding: 0.8rem 0;
    font-size: 1.08rem;
    border-radius: 8px;
  }
  .gv-form label { font-size: 1.05rem; }
}

/* === PREVENT IOS ZOOM === */
@media (max-width: 480px) {
  .gv-form input, .gv-form textarea, .gv-form select { font-size: 16px; }
}

.gv-form input:-webkit-autofill,
.gv-form textarea:-webkit-autofill,
.gv-form select:-webkit-autofill {
  -webkit-text-fill-color:#0b1220;       /* or #e2e8f0 for dark fields */
  box-shadow: 0 0 0 1000px #fff inset;   /* match your background */
  caret-color:#0b1220;
}

/* 1) Scope field labels only (stop hitting the consent label) */
.gv-form .gv-field > label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 0.4rem;
  color: #fff;
  letter-spacing: .01em;
  margin-bottom: 0.15rem;
}

/* keep the old rule from matching everything */
.gv-form label { all: unset; } /* optional: remove if you can't change the old rule */

/* 2) Consent block: logical row layout with multiline text */
.gv-form .checkbox-container {
  display: flex;
  flex-direction: row;          /* horizontal */
  align-items: flex-start;      /* checkbox aligns with first line of text */
  gap: 0.75rem;
  margin: .4rem 0 .2rem 0;
}

.gv-form .checkbox-container input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  flex: 0 0 22px;               /* stable alignment */
  margin-top: 2px;              /* optical alignment with text */
  border-radius: 6px;
  border: 1.5px solid #8aa2be;
  background: #0f1318;
  transition: border .22s, box-shadow .18s;
  position: relative;
}

/* Optional: wrap long consent text nicely */
.gv-form .checkbox-container span,
.gv-form .checkbox-container .label-text {
  line-height: 1.45;
  color: #d7e1ef;
}

/* Mobile spacing */
@media (max-width: 600px) {
  .gv-form .checkbox-container { gap: .6rem; }
}

.gv-block-wrap { padding:8px; }
.gv-block-wrap .description { margin-top:8px; opacity:.7; font-size:12px; }
