/* ============================================================
   KARY GROUP — Appointment System Stylesheet
   Theme: Luxury Navy & Blue Gradient
   ============================================================ */

:root {
  --navy: #0a1628;
  --navy-mid: #132038;
  --navy-light: #1e3058;
  /* Updated Gradient */
  --gold: linear-gradient(135deg, #70BFFF 0%, #3A86D4 50%, #1A5BB0 100%);
  --gold-light: linear-gradient(135deg, #70BFFF 0%, #3A86D4 50%, #1A5BB0 100%);
  --cream: #f9f8f5;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #8888aa;
  --border: #e8e4da;
  --success: #2e7d52;
  --error: #c0392b;
  --radius: 3px;
  --shadow: 0 4px 30px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 12px 60px rgba(10, 22, 40, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  border-bottom: 1px solid rgba(112, 191, 255, 0.2);
  /* Adjusted to match blue */
}

.nav-logo {
  text-decoration: none;
}

.nav-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.nav-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 80px 48px 90px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(58, 134, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* ── MAIN CONTAINER ── */
.main {
  padding: 60px 24px 80px;
}

.container {
  max-width: 780px;
  margin: 0 auto;
}

/* ── PROGRESS STEPS ── */
.progress-wrap {
  margin-bottom: 50px;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
  transition: opacity 0.3s;
}

.step.active {
  opacity: 1;
}

.step.done {
  opacity: 0.7;
}

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
}

.step.active .step-num {
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 400;
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 80px;
  margin: 0 16px 20px;
}

/* ── FORM STEPS ── */
.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-sub {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* ── FIELDS ── */
.field-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.field-group.two-col .field {
  flex: 1;
}

.field {
  display: flex;
  flex-direction: column;
  flex: 1;
}

label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 500;
  margin-bottom: 10px;
}

.req {
  color: #3A86D4;
}

.optional {
  color: var(--text-light);
  font-size: 10px;
  letter-spacing: 1px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3A86D4;
  box-shadow: 0 0 0 3px rgba(58, 134, 212, 0.12);
}

input.invalid,
select.invalid {
  border-color: var(--error);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a6a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

select:disabled {
  background: #f5f4f0;
  color: var(--text-light);
  cursor: not-allowed;
}

.error-msg {
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  min-height: 18px;
  display: block;
}

.slot-loading {
  font-size: 12px;
  color: #3A86D4;
  margin-top: 6px;
  font-style: italic;
}

.hidden {
  display: none !important;
}

/* ── SERVICE CARDS ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 400;
}

.service-card input[type="radio"] {
  display: none;
}

.service-card:hover {
  border-color: #3A86D4;
  background: #f7faff;
}

.service-card:has(input:checked) {
  border-color: #3A86D4;
  background: var(--navy);
  color: var(--white);
}

.service-flag {
  font-size: 22px;
}

.service-name {
  font-size: 11px;
  text-align: center;
  line-height: 1.3;
}

/* ── MEETING OPTIONS ── */
.meeting-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.meeting-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  text-transform: none;
  letter-spacing: 0;
  transition: all 0.2s;
  background: var(--white);
}

.meeting-opt input {
  display: none;
}

.meeting-opt:hover {
  border-color: #3A86D4;
}

.meeting-opt:has(input:checked) {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.meeting-icon {
  font-size: 16px;
}

/* ── NAVIGATION BUTTONS ── */
.step-nav {
  margin-top: 40px;
  display: flex;
  justify-content: flex-end;
}

.step-nav.two {
  justify-content: space-between;
  align-items: center;
}

.btn-next,
.btn-submit {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 15px 40px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-next:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-submit {
  background: var(--gold);
  color: var(--white);
}

.btn-submit:hover {
  background: var(--gold-light);
  filter: brightness(1.1);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--navy);
}

/* ── SUMMARY CARD ── */
.summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.summary-section {
  padding: 28px 32px;
}

.summary-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  margin-bottom: 16px;
  font-family: 'Jost', sans-serif;
  display: inline-block;
}

.summary-divider {
  height: 1px;
  background: var(--border);
}

.summary-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
}

.summary-row span {
  color: var(--text-light);
}

.summary-row strong {
  color: var(--text);
  font-weight: 500;
  max-width: 60%;
  text-align: right;
}

/* ── TERMS ── */
.terms-check {
  margin-bottom: 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mid);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: #3A86D4;
  cursor: pointer;
}

/* ── SUCCESS STATE ── */
.success-state {
  text-align: center;
  padding: 60px 20px;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 28px;
}

.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 16px;
}

.success-sub {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 460px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}

.btn-whatsapp:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-mid);
  text-decoration: none;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 13px;
  transition: border-color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer a {
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav {
    padding: 0 20px;
  }

  .hero {
    padding: 50px 20px 60px;
  }

  .field-group.two-col {
    flex-direction: column;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .meeting-options {
    flex-direction: column;
  }

  .step-nav.two {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .btn-next,
  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  .summary-row strong {
    max-width: 50%;
  }
}