/* ═══════════════════════════════════════════════════
   Contact Page Styles
   ═══════════════════════════════════════════════════ */

/* ─ Contact Section ── */
.section-contact {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

/* New Multi-step Form Layout */
.contact-grid-new {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Left: Steps Sidebar */
.contact-steps-sidebar {
  background: url('../images/contact-bg.jpg') center / cover no-repeat;
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.contact-steps-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 59, 128, 0.85) 0%, rgba(29, 43, 116, 0.85) 100%);
  z-index: 1;
}

.contact-steps-sidebar > * {
  position: relative;
  z-index: 2;
}

.steps-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 28px;
  color: #fff;
}

/* Contact Info Section */
.contact-info-section {
  margin-bottom: 40px;
}

.contact-region {
  margin-bottom: 24px;
}

.contact-region:last-child {
  margin-bottom: 0;
}

.region-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.region-phone {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.region-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.steps-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-item.active {
  background: #fff;
  color: #1D2B74;
}

.step-item.completed {
  background: rgba(255, 255, 255, 0.2);
}

.step-number {
  font-weight: 500;
  font-size: 14px;
}

.step-check {
  width: 18px;
  height: 18px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-item.completed .step-check {
  opacity: 1;
}

.step-arrow {
  width: 18px;
  height: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #1D2B74;
}

.step-item.active .step-arrow {
  opacity: 1;
}

/* Contact Info Section */
.contact-info-section {
  margin-bottom: 40px;
}

.contact-region {
  margin-bottom: 24px;
}

.contact-region:last-child {
  margin-bottom: 0;
}

.region-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.region-phone {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.region-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Right: Form Container */
.contact-form-container {
  background: #fff;
  padding: 40px 48px;
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
}

/* Multi-step Form */
.multi-step-form {
  position: relative;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step-title {
  font-size: 20px;
  font-weight: 600;
  color: #1D2B74;
  margin-bottom: 6px;
}

.form-step-note {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.required {
  color: #ef4444;
}

.form-row {
  margin-bottom: 20px;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-zh);
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #1D2B74;
  box-shadow: 0 0 0 3px rgba(29, 43, 116, 0.1);
}

.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown),
.form-select:invalid:not([value=""]) {
  border-color: #ef4444;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-muted);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-text {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.5;
}

.privacy-link {
  color: #1D2B74;
  text-decoration: underline;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.btn-next,
.btn-submit {
  padding: 12px 32px;
}

.btn-prev {
  padding: 12px 24px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-bg);
}

/* Success Message */
.form-success {
  padding: 80px 40px;
  text-align: center;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: #10b981;
}

.success-icon svg {
  width: 56px;
  height: 56px;
}

.success-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.success-message {
  font-size: 15px;
  color: var(--color-muted);
}

/* Error Message */
.form-error {
  padding: 20px;
  text-align: center;
  background: rgba(239, 68, 68, 0.06);
  border-radius: var(--btn-radius);
}

.form-error p {
  font-size: 14px;
  color: var(--color-error);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .contact-grid {
    gap: 48px;
  }
  
  .contact-grid-new {
    grid-template-columns: 1fr;
  }
  
  .contact-steps-sidebar {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

  .contact-info-title,
  .contact-form-title {
    font-size: 24px;
  }
  
  .contact-form-container {
    padding: 32px 24px;
  }
  
  .form-row-two {
    grid-template-columns: 1fr;
  }
  
}
