/* ==========================================================================
   Contact Page — Multi-Step Form
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Form Card */
.contact-form-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

/* ==========================================================================
   Step Indicator
   ========================================================================== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  cursor: default;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--text-muted);
  transition: all var(--transition);
  border: 2px solid transparent;
}

.step-dot.active .step-num {
  background: var(--gradient-pink-btn);
  color: white;
  box-shadow: 0 2px 12px rgba(221, 34, 143, 0.25);
}

.step-dot.completed .step-num {
  background: var(--brand-3);
  color: white;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.step-dot.active .step-label {
  color: var(--brand-3);
}

.step-dot.completed .step-label {
  color: var(--text-muted);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--bg-alt);
  margin: 0 1rem;
  margin-bottom: 1.5rem; /* Align with dot center */
  transition: background var(--transition);
}

.step-line.completed {
  background: var(--brand-3);
}

/* ==========================================================================
   Form Steps
   ========================================================================== */
.form-step {
  display: none;
  animation: fadeInStep 0.4s var(--ease);
}

.form-step.active {
  display: block;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  gap: 1rem;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.req { color: var(--brand-3); }

.form-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition-fast);
}

.form-input::placeholder {
  color: #b0b0b0;
  font-weight: 400;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-3);
  box-shadow: 0 0 0 3px rgba(221, 34, 143, 0.08);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Custom Dropdown */
.custom-dropdown { position: relative; }

.dropdown-selected {
  cursor: pointer;
  user-select: none;
  color: #b0b0b0;
}

.dropdown-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: white;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
}

.custom-dropdown.active .dropdown-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-options li {
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  transition: background var(--transition-fast);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.dropdown-options li:last-child { border-bottom: none; }

.dropdown-options li:hover {
  background: var(--color-blush-tint);
  color: var(--brand-3);
}

/* Checkboxes */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.checkbox-item:hover { color: var(--brand-3); }

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-3);
  cursor: pointer;
  border-radius: 4px;
}

/* ==========================================================================
   Custom Date Picker Calendar
   ========================================================================== */
.date-picker {
  position: relative;
}

.date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  background: var(--bg);
}

.date-trigger-text {
  color: #b0b0b0;
}

.date-trigger.has-value .date-trigger-text {
  color: var(--text);
  font-weight: 500;
}

.date-trigger svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.date-trigger:focus {
  outline: none;
  border-color: var(--brand-3);
  box-shadow: 0 0 0 3px rgba(221, 34, 143, 0.08);
}

.calendar-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  width: 320px;
  background: white;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
  z-index: 20;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.97);
  transition: all 0.2s var(--ease);
}

.date-picker.open .calendar-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Calendar Header */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.cal-month-year {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.cal-nav {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.cal-nav:hover {
  background: var(--color-blush-tint);
  color: var(--brand-3);
}

/* Weekday Headers */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 0.5rem;
}

.cal-weekdays span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: 0.3rem 0;
}

/* Day Grid */
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  width: 100%;
  aspect-ratio: 1;
  border: none;
  background: none;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cal-day:hover:not(.disabled):not(.selected) {
  background: var(--color-blush-tint);
  color: var(--brand-3);
}

.cal-day.today:not(.selected) {
  border: 1.5px solid var(--brand-3);
  color: var(--brand-3);
  font-weight: 700;
}

.cal-day.selected {
  background: var(--gradient-pink-btn);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(221, 34, 143, 0.25);
}

.cal-day.disabled {
  color: var(--text-light);
  opacity: 0.35;
  cursor: not-allowed;
}

.cal-day.other-month {
  color: var(--text-light);
  opacity: 0.3;
}

/* ==========================================================================
   Form Summary (Step 3)
   ========================================================================== */
.form-summary {
  background: var(--color-blush-tint);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid rgba(221, 34, 143, 0.06);
}

.form-summary h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-3);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.summary-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 500;
}

.summary-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.sidebar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.sidebar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 500;
}

.info-item a,
.info-item span:not(.info-label) {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.info-item a:hover { opacity: 0.6; }

/* Sidebar illustration */
.sidebar-illustration {
  text-align: center;
  padding: 1.5rem 0;
}

.sidebar-illustration svg {
  width: 120px;
  height: auto;
  opacity: 0.85;
}

/* Trust Card */
.trust-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
  background: var(--color-blush-tint);
}

.trust-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--brand-3);
}

.trust-stat span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Submit button enhancement */
.submit-btn {
  background: var(--gradient-pink-btn) !important;
  box-shadow: 0 4px 16px rgba(221, 34, 143, 0.2);
}

.submit-btn:hover {
  box-shadow: 0 8px 30px rgba(221, 34, 143, 0.35) !important;
}

/* ==========================================================================
   Validation Error States
   ========================================================================== */
.form-input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

.field-error {
  font-size: 0.75rem;
  color: #e74c3c;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

/* Step Error Banner */
.step-error-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: #B91C1C;
  font-weight: 500;
  animation: fadeInStep 0.3s var(--ease);
}

.error-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #EF4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-sidebar {
    position: static;
    flex-direction: row;
  }
  .sidebar-card { flex: 1; }
}

@media (max-width: 600px) {
  .contact-form-wrap { padding: 2rem 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .contact-sidebar { flex-direction: column; }
  .summary-grid { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .step-indicator { gap: 0; }
  .step-line { margin: 0 0.5rem; margin-bottom: 0; }
}