/**
 * ND30 LIVE - "Advertise With Us" Navigation CTA & Modal Styling
 */

/* ========================================================
   NAVIGATION CTA BUTTON: "Advertise With Us"
   ======================================================== */
.advertise-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%);
  color: #ffffff !important;
  border: 1.5px solid rgba(251, 191, 36, 0.7);
  padding: 6px 14px;
  border-radius: 22px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35), 0 0 10px rgba(251, 191, 36, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}

.advertise-cta-btn::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 50%;
  height: 220%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.2) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: all 0.75s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

.advertise-cta-btn .ad-btn-icon {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.25s ease;
}

.advertise-cta-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.55), 0 0 18px rgba(251, 191, 36, 0.5);
  border-color: #fde68a;
}

.advertise-cta-btn:hover::before {
  left: 140%;
  opacity: 1;
}

.advertise-cta-btn:hover .ad-btn-icon {
  transform: scale(1.25) rotate(-12deg);
}

.advertise-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ========================================================
   MODAL OVERLAY & CONTAINER
   ======================================================== */
.ad-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
  box-sizing: border-box;
}

.ad-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ad-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}

.ad-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(37, 99, 235, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f1f5f9;
}

.ad-modal-overlay.active .ad-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.ad-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-header-brand {
  display: flex;
  align-items: center;
}

.ad-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.ad-modal-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
  line-height: 1.35;
}

.ad-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 1.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.ad-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Modal Body */
.ad-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

/* Autosave Bar */
.ad-autosave-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 18px;
  font-size: 0.76rem;
}

.ad-draft-status {
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.ad-btn-text {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.74rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.ad-btn-text:hover {
  color: #ef4444;
}

/* Section styling */
.ad-form-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.ad-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ad-section-hint {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0 0 14px 0;
}

/* Partner Selector Cards */
.ad-partner-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ad-partner-card {
  position: relative;
  display: block;
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ad-partner-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ad-partner-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ad-partner-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.ad-partner-info strong {
  display: block;
  font-size: 0.86rem;
  color: #ffffff;
  margin-bottom: 3px;
}

.ad-partner-info span {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
  display: block;
}

.ad-partner-card.active {
  border-color: #3b82f6;
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.25);
}

/* Form Controls */
.ad-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 5px;
}

.ad-form-control {
  width: 100%;
  background: #020617;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.ad-form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.ad-sub-note {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
}

.ad-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Live Charges Pill */
.ad-charges-pill {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.ad-charges-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.ad-charges-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: #22c55e;
  letter-spacing: -0.5px;
}

.ad-charges-desc {
  width: 100%;
  font-size: 0.72rem;
  color: #86efac;
}

/* Mobile wrap & WhatsApp Verification */
.ad-mobile-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ad-phone-prefix {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

.ad-btn-verify-otp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s ease;
}

.ad-btn-verify-otp:hover {
  opacity: 0.9;
}

.ad-otp-box {
  background: rgba(30, 41, 59, 0.8);
  border: 1px dashed rgba(34, 197, 94, 0.4);
  border-radius: 8px;
  padding: 12px;
}

/* Terms & Conditions Box */
.ad-terms-box {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  max-height: 140px;
  overflow-y: auto;
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 12px;
}

.ad-terms-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 6px 0;
}

.ad-terms-list {
  padding-left: 18px;
  margin: 0;
}

.ad-terms-list li {
  margin-bottom: 5px;
}

.ad-terms-checkbox-wrap {
  margin-top: 10px;
}

.ad-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.ad-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
}

.ad-checkbox-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* Modal Footer */
.ad-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.ad-btn-submit {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transition: all 0.25s ease;
}

.ad-btn-submit:disabled {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

.ad-btn-submit:not(:disabled):hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

/* Success View */
.ad-success-container {
  text-align: center;
  padding: 20px 10px;
}

.ad-success-badge {
  font-size: 3rem;
  margin-bottom: 12px;
}

.ad-success-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.ad-success-subtitle {
  font-size: 0.86rem;
  color: #94a3b8;
  margin: 0 0 20px 0;
}

.ad-booking-card-preview {
  background: #020617;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}

.ad-booking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-size: 0.74rem;
  color: #94a3b8;
}

.ad-success-ref {
  color: #38bdf8;
  font-size: 0.95rem;
  font-family: monospace;
}

.ad-booking-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.82rem;
}

.ad-booking-summary-grid .lbl {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 2px;
}

.ad-next-steps {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.ad-next-steps p {
  margin: 4px 0 0 0;
  color: #94a3b8;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-actions {
    gap: 6px;
  }
  .advertise-cta-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
  }
}

@media (max-width: 640px) {
  .ad-modal-dialog {
    max-width: 95vw;
    max-height: 94vh;
    border-radius: 12px;
    margin: 10px auto;
  }
  .ad-modal-header {
    padding: 14px 16px;
  }
  .ad-modal-body {
    padding: 16px 14px;
    -webkit-overflow-scrolling: touch;
  }
  .ad-modal-title {
    font-size: 1.1rem;
  }
  .ad-partner-selector {
    grid-template-columns: 1fr;
  }
  .ad-grid-2 {
    grid-template-columns: 1fr;
  }
  .ad-mobile-wrap {
    flex-wrap: wrap;
  }
  .ad-btn-verify-otp {
    width: 100%;
    justify-content: center;
  }
  .ad-btn-submit-booking {
    width: 100%;
    justify-content: center;
  }
  .ad-form-control {
    font-size: 16px !important; /* Prevents iOS Safari auto-zoom */
  }
}
