/* ============================================================
   Marriott Bonvoy — 5-Star Luxury Captive Portal Stylesheet
   Designed to match Marriott Bonvoy / Amanora The Fern standard
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

/* ─── CSS Variables & Theme Tokens ─── */
:root {
  --marriott-black: #1c1c1c;
  --marriott-dark: #232323;
  --marriott-header-dark: #282828;
  --marriott-gray-bg: #f7f7f8;
  --marriott-teal: #00818a;
  --text-dark: #1c1c1c;
  --text-body: #4a5568;
  --text-muted: #718096;
  --border-light: #e2e8f0;
  --border-dark: #2d3748;
  
  /* Legacy tokens preserved for status/disconnect pages */
  --gold: #d4af37;
  --bg-deep: #0b1120;
  --text-primary: #f8fafc;
}

/* ─── Global Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ══════════════════════════════════════════════════════════
   1. TOP BLACK BAR (Marriott Bonvoy Global Bar)
══════════════════════════════════════════════════════════ */
.top-nav-black {
  background-color: var(--marriott-black);
  color: #ffffff;
  height: 52px;
  width: 100%;
  position: relative;
  z-index: 40;
}

.nav-container {
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  width: 16px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 1px;
}

.menu-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Marriott Bonvoy Center Logo */
.nav-brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bonvoy-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  letter-spacing: 2px;
}

.bonvoy-main {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #e2e8f0;
  text-transform: uppercase;
}

.bonvoy-sub {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 2.8px;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-img-logo {
  max-height: 34px;
  max-width: 180px;
  object-fit: contain;
}

.nav-actions-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-selector,
.nav-signin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s;
}

.lang-selector:hover,
.nav-signin-link:hover {
  opacity: 0.8;
}

/* ══════════════════════════════════════════════════════════
   2. SUB-HEADER BAR (Hotel Property Details)
══════════════════════════════════════════════════════════ */
.sub-header-white {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  width: 100%;
}

.sub-header-container {
  width: 100%;
  max-width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.property-brand-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.property-tag-badge {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  padding-right: 18px;
  border-right: 1px solid #e2e8f0;
}

.property-logo-badge {
  display: flex;
  align-items: center;
  padding-right: 18px;
  border-right: 1px solid #e2e8f0;
  max-height: 48px;
}

.hotel-custom-logo {
  max-height: 42px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.series-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
}

.series-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--marriott-teal);
  text-transform: uppercase;
}

.property-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
}

.property-contact-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.phone-link:hover {
  color: var(--marriott-teal);
}

.btn-book-stay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  background-color: #ffffff;
  border: 1px solid #111827;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.btn-book-stay:hover {
  background-color: #111827;
  color: #ffffff;
}

/* ══════════════════════════════════════════════════════════
   3. HERO SECTION (Full-Width Image & Centered Floating Card)
══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* Centered White Floating Card */
.floating-connect-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 36px 32px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.28), 0 0 1px rgba(0, 0, 0, 0.12);
  text-align: center;
  width: 100%;
}

.wifi-circle-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: #111827;
}

.card-hero-title {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.card-hero-subtitle {
  font-size: 14px;
  line-height: 1.55;
  color: #555555;
  margin-bottom: 26px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Big Pill Connect Button */
.btn-hero-connect {
  display: block;
  width: 100%;
  height: 48px;
  background-color: var(--marriott-dark);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-hero-connect:hover {
  background-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-hero-connect:active {
  transform: translateY(0);
}

.card-terms-text {
  font-size: 12px;
  color: #666666;
  margin-top: 18px;
}

.card-terms-text a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-already-member {
  margin-top: 14px;
  font-size: 13px;
  color: #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.link-check-status {
  color: #111827;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════
   4. EXCLUSIVE PROMO / APP BANNER
══════════════════════════════════════════════════════════ */
.promo-banner-section {
  background-color: #f7f7f8;
  padding: 32px 20px;
  width: 100%;
}

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

.promo-inner-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 32px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.phone-graphic-wrap {
  flex-shrink: 0;
}

.mini-phone-device {
  width: 58px;
  height: 58px;
  background: #111827;
  border-radius: 12px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #1f2937;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-mini-logo {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.promo-content {
  flex: 1;
}

.promo-headline {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.promo-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.45;
}

.promo-action {
  flex-shrink: 0;
}

.btn-promo-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: var(--marriott-dark);
  color: #ffffff;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-promo-download:hover {
  background-color: #000000;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   5. 5-STAR LUXURY MULTI-COLUMN FOOTER
══════════════════════════════════════════════════════════ */
.marriott-footer {
  background-color: var(--marriott-black);
  color: #ffffff;
  padding: 56px 20px 32px;
  width: 100%;
}

.footer-container {
  width: 100%;
  max-width: 100%;
  padding: 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-divider {
  height: 1px;
  background-color: #2e3846;
  margin: 42px 0 24px;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #64748b;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-label {
  color: #94a3b8;
  font-size: 12px;
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  transition: all 0.2s;
}

.social-icon:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.footer-copyright {
  color: #64748b;
  font-size: 12px;
}

/* ══════════════════════════════════════════════════════════
   6. INTERACTIVE AUTHENTICATION MODAL (SCREENSHOT 3 STYLE)
══════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog-box {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header-bar {
  background-color: var(--marriott-header-dark);
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.modal-close-btn:hover {
  opacity: 1;
}

.modal-body-content {
  padding: 28px 28px 24px;
}

.view-intro h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.view-intro p {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 22px;
}

/* Marriott Underline Inputs */
.form-underline-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-underline-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #374151;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.form-underline-group input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #94a3b8;
  padding: 8px 0 10px;
  font-size: 15px;
  color: #111827;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-underline-group input:focus {
  border-bottom-color: #111827;
}

.form-underline-group input::placeholder {
  color: #94a3b8;
  font-size: 14px;
}

.modal-phone-row {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid #94a3b8;
  transition: border-color 0.2s;
}

.modal-phone-row:focus-within {
  border-bottom-color: #111827;
}

.modal-phone-row input {
  border-bottom: none !important;
  padding: 8px 0 10px;
}

.modal-phone-flag {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  padding-right: 8px;
}

.modal-channel-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 13px;
}

.channel-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.channel-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}

.modal-tc-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 20px;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.4;
}

.modal-tc-row input[type="checkbox"] {
  accent-color: #111827;
  margin-top: 2px;
  cursor: pointer;
}

.modal-tc-row a {
  color: #111827;
  text-decoration: underline;
}

.form-error-banner {
  display: none;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Modal Submit Button (Pill shaped, disabled gray or active black) */
.btn-modal-submit {
  width: 100%;
  height: 44px;
  background-color: #1c1c1c;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-modal-submit:hover:not(:disabled) {
  background-color: #000000;
}

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

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-modal-submit.loading .btn-spinner {
  display: inline-block;
}

.btn-modal-submit.loading .btn-text {
  opacity: 0.7;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-or-divider {
  position: relative;
  text-align: center;
  margin: 22px 0 16px;
}

.modal-or-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e2e8f0;
}

.modal-or-divider span {
  position: relative;
  background-color: #ffffff;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
}

.modal-alt-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-alt-link {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-alt-link:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

.modal-view-nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.link-back-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}

.link-back-btn:hover {
  color: #0f172a;
}

.modal-simulator-banner {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 16px;
}

.modal-otp-digit-input {
  letter-spacing: 10px;
  font-size: 24px !important;
  font-weight: 700;
  text-align: center;
}

.otp-resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.link-small-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}

.link-small-btn:hover {
  color: #0f172a;
}

/* ══════════════════════════════════════════════════════════
   7. STATUS / SUCCESS PAGE STYLES (Preserved for /success)
══════════════════════════════════════════════════════════ */
.status-page {
  position: relative;
  z-index: 10;
  max-width: 480px;
  margin: 60px auto;
  padding: 40px 32px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.status-icon.success {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.status-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.status-body {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 24px;
}

.session-info-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  text-align: left;
}

.session-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
}

.session-info-row .label {
  color: #64748b;
}

.session-info-row .value {
  font-weight: 600;
  color: #0f172a;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  background: #111827;
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #000000;
}

/* ══════════════════════════════════════════════════════════
   8. RESPONSIVE DESIGN (Tablets & Mobile Screens)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
  }

  .sub-header-container {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .property-brand-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .property-tag-badge {
    border-right: none;
    padding-right: 0;
  }

  .hero-section {
    min-height: 460px;
    padding: 32px 16px;
  }

  .floating-connect-card {
    padding: 32px 24px 28px;
  }

  .promo-inner-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .promo-action {
    width: 100%;
  }

  .btn-promo-download {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-container {
    padding: 0 16px;
  }

  .card-hero-title {
    font-size: 22px;
  }
}