/* ======================================================================
   Ali Ghali - Luxury Distributor Application Form Styles
   Mehwar Al-Rafidain Co. & China Direct
   ====================================================================== */

body:has(.distributor-page-wrapper),
body.page-distributor-light {
  background-color: #faf8f5;
  color: #232127;
}

.distributor-page-wrapper {
  padding-top: var(--header-height-resting, 96px);
  min-height: 100vh;
  background: radial-gradient(circle at 85% 15%, rgba(107, 14, 24, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 15% 55%, rgba(203, 168, 113, 0.09) 0%, transparent 55%),
              #faf8f5;
  color: #232127;
  position: relative;
  overflow: hidden;
}

.distributor-hero {
  padding: 55px 0 35px;
  border-bottom: 1px solid rgba(203, 168, 113, 0.3);
  background: linear-gradient(180deg, rgba(85, 10, 18, 0.06) 0%, rgba(250, 248, 245, 0.95) 100%);
  position: relative;
}

.distributor-hero-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.distributor-hero .breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #55505c;
  margin-bottom: 18px;
  background: #ffffff;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(203, 168, 113, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.distributor-hero .breadcrumb-nav a {
  color: #55505c;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.distributor-hero .breadcrumb-nav a:hover {
  color: #7b111d;
  text-decoration: none;
}

.distributor-hero .breadcrumb-separator {
  color: #cba871;
  opacity: 0.75;
  font-size: 13px;
  font-weight: 600;
  user-select: none;
}

.distributor-hero .breadcrumb-current {
  color: #1a0407;
  font-weight: 700;
}

.distributor-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(85, 10, 18, 0.06);
  border: 1px solid rgba(203, 168, 113, 0.5);
  color: #550a12;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.distributor-hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cba871;
  box-shadow: 0 0 10px #cba871;
  animation: distPulse 2s infinite;
}

@keyframes distPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.distributor-main-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #1a0407;
  line-height: 1.25;
  margin-bottom: 14px;
}

.distributor-main-title span {
  background: linear-gradient(135deg, #7b111d 0%, #cba871 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.distributor-subtitle {
  font-size: 16px;
  color: #55505c;
  line-height: 1.7;
  max-width: 800px;
  margin-bottom: 22px;
}

/* Important Notice Banner */
.distributor-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(203, 168, 113, 0.12);
  border: 1.5px solid rgba(203, 168, 113, 0.45);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 15px;
  backdrop-filter: blur(8px);
}

.distributor-notice-box svg {
  flex-shrink: 0;
  color: #7b111d;
  margin-top: 2px;
}

.distributor-notice-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #38070d;
}

.distributor-notice-text strong {
  color: #7b111d;
  font-weight: 800;
}

/* Form Container */
.distributor-form-section {
  padding: 45px 0 80px;
}

.distributor-form-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.distributor-card {
  background: #ffffff;
  border: 1.5px solid rgba(203, 168, 113, 0.32);
  border-radius: 24px;
  box-shadow: 0 14px 45px rgba(85, 10, 18, 0.05),
              0 2px 10px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  position: relative;
}

.distributor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #550a12, #cba871, #550a12);
}

/* Form Sections */
.form-step-section {
  padding: 36px 40px;
  border-bottom: 1px solid rgba(203, 168, 113, 0.2);
  position: relative;
}

.form-step-section:last-of-type {
  border-bottom: none;
}

.form-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.form-step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #550a12 0%, #3a060c 100%);
  color: #cba871;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(85, 10, 18, 0.25);
  flex-shrink: 0;
}

.form-step-title {
  font-family: 'Cairo', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #1a0407;
  margin: 0;
}

.form-step-desc {
  font-size: 13.5px;
  color: #726e79;
  margin-top: 2px;
}

/* Inputs & Grid */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #1a0407;
  margin-bottom: 8px;
  line-height: 1.45;
}

.form-label .required-star {
  color: #dc2626;
  font-weight: 800;
  margin-right: 3px;
}

.form-label .optional-hint {
  font-size: 12.5px;
  color: #928d9a;
  font-weight: normal;
}

.form-control-input,
.form-control-textarea,
.form-control-select {
  width: 100%;
  background: #faf8f5;
  border: 1.5px solid rgba(203, 168, 113, 0.35);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  color: #1a0407;
  font-family: inherit;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-control-input:focus,
.form-control-textarea:focus,
.form-control-select:focus {
  outline: none;
  background: #ffffff;
  border-color: #cba871;
  box-shadow: 0 0 0 4px rgba(203, 168, 113, 0.18);
}

.form-control-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* Choice Cards (Radio & Checkbox) */
.choices-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.choices-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.choice-card-label {
  display: block;
  position: relative;
  cursor: pointer;
  margin: 0;
}

.choice-card-label input[type="radio"],
.choice-card-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #faf8f5;
  border: 1.5px solid rgba(203, 168, 113, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  transition: all 0.22s ease;
  user-select: none;
}

.choice-card-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(203, 168, 113, 0.6);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.choice-card-label input[type="radio"] + .choice-card-body .choice-card-icon {
  border-radius: 50%;
}

.choice-card-icon svg {
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s ease;
}

.choice-card-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #353238;
}

.choice-card-label:hover .choice-card-body {
  background: #ffffff;
  border-color: #cba871;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(203, 168, 113, 0.12);
}

.choice-card-label input:checked + .choice-card-body {
  background: linear-gradient(135deg, rgba(85, 10, 18, 0.04) 0%, rgba(203, 168, 113, 0.12) 100%);
  border-color: #7b111d;
  box-shadow: 0 4px 15px rgba(123, 17, 29, 0.08);
}

.choice-card-label input:checked + .choice-card-body .choice-card-icon {
  background: #7b111d;
  border-color: #7b111d;
}

.choice-card-label input:checked + .choice-card-body .choice-card-icon svg {
  opacity: 1;
  transform: scale(1);
}

.choice-card-label input:checked + .choice-card-body .choice-card-text {
  color: #550a12;
  font-weight: 700;
}

/* Declaration Box */
.declaration-agreement-card {
  background: linear-gradient(135deg, rgba(85, 10, 18, 0.03) 0%, rgba(203, 168, 113, 0.08) 100%);
  border: 1.5px solid rgba(203, 168, 113, 0.5);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}

.declaration-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.declaration-checkbox-wrap input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #7b111d;
  margin-top: 3px;
  cursor: pointer;
}

.declaration-text {
  font-size: 15px;
  line-height: 1.65;
  color: #1a0407;
  font-weight: 600;
}

/* Form Actions & Submit */
.form-submit-row {
  padding: 30px 40px;
  background: #fdfbf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(203, 168, 113, 0.25);
}

.form-submit-note {
  font-size: 13.5px;
  color: #726e79;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-distributor-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #7b111d 0%, #550a12 60%, #3a060c 100%);
  color: #ffffff;
  border: 1.5px solid rgba(203, 168, 113, 0.45);
  padding: 16px 36px;
  border-radius: 999px;
  font-family: 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(85, 10, 18, 0.28);
}

.btn-distributor-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(85, 10, 18, 0.36);
  border-color: #cba871;
  background: linear-gradient(135deg, #911624 0%, #680d17 60%, #46080f 100%);
}

.btn-distributor-submit svg {
  color: #cba871;
  transition: transform 0.25s ease;
}

.btn-distributor-submit:hover svg {
  transform: translateX(-4px);
}

/* Success Card */
.distributor-success-card {
  background: #ffffff;
  border: 2px solid #cba871;
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(85, 10, 18, 0.08);
  position: relative;
  overflow: hidden;
}

.distributor-success-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #550a12, #cba871, #550a12);
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(203, 168, 113, 0.2) 0%, rgba(85, 10, 18, 0.08) 100%);
  border: 2px solid #cba871;
  color: #7b111d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #faf8f5;
  border: 1.5px dashed #cba871;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: 'Outfit', monospace;
  font-size: 18px;
  font-weight: 800;
  color: #550a12;
  margin: 18px 0;
}

.success-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn-whatsapp-followup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
}

.btn-whatsapp-followup:hover {
  background: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-return-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #faf8f5;
  border: 1.5px solid rgba(203, 168, 113, 0.5);
  color: #1a0407;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s ease;
}

.btn-return-home:hover {
  background: #ffffff;
  border-color: #7b111d;
  color: #7b111d;
}

/* Alert Banner */
.distributor-alert-error {
  background: #fef2f2;
  border: 1.5px solid #f87171;
  border-radius: 12px;
  padding: 16px 20px;
  color: #991b1b;
  font-size: 14.5px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .choices-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 680px) {
  .form-step-section {
    padding: 26px 20px;
  }
  .choices-grid-3,
  .choices-grid-2 {
    grid-template-columns: 1fr;
  }
  .form-submit-row {
    padding: 24px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .btn-distributor-submit {
    width: 100%;
  }
  .distributor-hero {
    padding: 40px 0 25px;
  }
}
