/* =============================================
   Haven & Code — Get Started Page v2
   ============================================= */

body { background: var(--cream); }

.gs-hero { padding: 8rem 0 5rem; min-height: 100vh; }

.gs-layout {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 4rem; align-items: start;
}

.gs-back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-ui);
  font-size: .85rem; font-weight: 600; color: var(--mid);
  margin-bottom: 2.5rem; transition: color .2s;
}
.gs-back:hover { color: var(--ink); }

.gs-intro__content h1 { margin-top: .5rem; margin-bottom: .5rem; }

.gs-intro__promise { display: flex; flex-direction: column; gap: 1.1rem; margin: 2.25rem 0; }

.gs-promise-item { display: flex; align-items: flex-start; gap: .9rem; }
.gs-promise-item__icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--primary-pale); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.gs-promise-item strong { display: block; font-size: .875rem; font-weight: 700; color: var(--ink); margin-bottom: .15rem; }
.gs-promise-item span { font-size: .82rem; color: var(--mid); line-height: 1.5; }

.gs-intro__whatsapp {
  padding: 1.6rem; background: white;
  border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.gs-intro__whatsapp-label { font-size: .82rem; color: var(--mid); margin-bottom: .9rem; font-weight: 500; }

/* Form */
.gs-form-wrap { position: sticky; top: 100px; }

.gs-form {
  background: white; border-radius: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden;
}

.gs-form__header { padding: 2rem 2.25rem 0; margin-bottom: 1.65rem; }
.gs-form__header h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.gs-form__header p { font-size: .85rem; color: var(--mid); }

.gs-form__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.35rem;
  padding: 0 2.25rem; margin-bottom: 1.6rem;
}

.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field--full { grid-column: 1 / -1; }

.form-field label { font-family: var(--font-ui); font-size: .82rem; font-weight: 600; color: var(--ink); }
.form-field label span[aria-hidden] { color: var(--primary); margin-left: 2px; }
.form-field__optional { font-weight: 400 !important; color: var(--mid) !important; font-size: .78rem; }

.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: .875rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 10px; padding: .7rem .95rem;
  width: 100%; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none; outline: none; line-height: 1.5;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(61,107,82,.12); background: var(--white);
}
.form-field input.error, .form-field select.error {
  border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A746D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 15px;
  padding-right: 2.25rem; cursor: pointer;
}

.form-field__input-prefix {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 10px; overflow: hidden; background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.form-field__input-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(61,107,82,.12); background: var(--white); }
.form-field__prefix {
  padding: .7rem .9rem; background: white; border-right: 1.5px solid var(--border);
  font-family: var(--font-ui); font-size: .82rem; font-weight: 600; color: var(--mid);
  flex-shrink: 0; display: flex; align-items: center;
}
.form-field__input-prefix input { border: none; border-radius: 0; background: transparent; flex: 1; padding: .7rem .85rem; }
.form-field__input-prefix input:focus { border: none; box-shadow: none; background: transparent; }

/* Radio / Checkbox pill-style */
.form-field__radio-group, .form-field__checkbox-group { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .2rem; }
.radio-option, .checkbox-option { cursor: pointer; display: flex; align-items: center; gap: 0; }
.radio-option input, .checkbox-option input { display: none; }
.radio-option__label, .checkbox-option__label {
  font-family: var(--font-ui);
  font-size: .82rem; font-weight: 500; color: var(--ink);
  padding: .45rem .9rem;
  border: 1.5px solid var(--border); border-radius: 100px;
  background: var(--cream); cursor: pointer;
  transition: all .17s; user-select: none;
}
.radio-option input:checked + .radio-option__label,
.checkbox-option input:checked + .checkbox-option__label { background: var(--primary); border-color: var(--primary); color: white; }
.radio-option__label:hover, .checkbox-option__label:hover { border-color: var(--primary); color: var(--primary); }
.radio-option input:checked + .radio-option__label:hover,
.checkbox-option input:checked + .checkbox-option__label:hover { color: white; }

.gs-form__submit { margin: 0 2.25rem 1.75rem; width: calc(100% - 4.5rem); justify-content: center; }
.gs-form__note { text-align: center; font-size: .78rem; color: var(--mid); padding: 0 2.25rem 1.75rem; }

/* Success */
.gs-form__success {
  background: white; border-radius: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  padding: 4rem 2.5rem; text-align: center;
}
.gs-success__icon { font-size: 3.2rem; color: var(--primary); margin-bottom: 1.35rem; }
.gs-form__success h2 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--ink); margin-bottom: .65rem; }
.gs-form__success p { font-size: .875rem; color: var(--mid); line-height: 1.7; margin-bottom: 2rem; max-width: 360px; margin-left: auto; margin-right: auto; }
.gs-form__submit:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

@media (max-width: 1024px) {
  .gs-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .gs-form-wrap { position: static; }
  .gs-form__grid { grid-template-columns: 1fr; }
  .gs-hero { padding: 7rem 0 4rem; }
}

@media (max-width: 600px) {
  .gs-form__grid, .gs-form__header, .gs-form__note { padding-left: 1.4rem; padding-right: 1.4rem; }
  .gs-form__submit { margin-left: 1.4rem; margin-right: 1.4rem; width: calc(100% - 2.8rem); }
  .gs-form__success { padding: 2.75rem 1.4rem; }
}
