/* ============================================================
   GDVCONNECT — Vacation Club PWA
   style.css | GDVElite brand theme
   Fonts  : Open Sans + Merriweather (matches gdvelite.com)
   Colors : GDV crimson #b5121b, dark nav #1c1c1c, gold #e8a020
   ============================================================ */

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic&display=swap');
@import url('https://fonts.googleapis.com/css?family=Merriweather:400,300italic,300,400italic,700italic,700&display=swap');

:root {
    --gdv-red:      #b5121b;
    --gdv-red-dark: #8e0e13;
    --nav-dark:     #1c1c1c;
    --dark-2:       #242424;
    --dark-3:       #2e2e2e;
    --gold:         #e8a020;
    --gold-light:   #f5c862;
    --white:        #ffffff;
    --off-white:    #f4f4f4;
    --body-text:    #333333;
    --muted:        #777777;
    --link-blue:    #2980b9;
    --green:        #27ae60;
    --danger:       #c0392b;

    --font-display: 'Merriweather', Georgia, serif;
    --font-body:    'Open Sans', 'Helvetica Neue', Arial, sans-serif;

    --radius:    6px;
    --radius-lg: 14px;
    --shadow:    0 4px 18px rgba(0,0,0,0.35);
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Default: pages scroll normally (index.php etc.) ────────
   .app-mode on <html> overrides this for the slide deck       */
html, body {
    min-height: 100%;
    background: var(--nav-dark);
    color: var(--white);
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    font-size: 14px;
    line-height: 1.6;
}

/* ── app.php only: lock scroll for fullscreen slide deck ───── */
html.app-mode,
html.app-mode body {
    height: 100% !important;
    overflow: hidden !important;
    touch-action: pan-y;
}

/* ── Scrollable wrapper used inside app.php ─────────────────  */
.page-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ════════════════════════════════════════════════════════════
   SCREEN SHIELD
   ════════════════════════════════════════════════════════════ */
#shield-screen {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--nav-dark);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
}
#shield-screen.active { display: flex; }

.shield-icon {
    font-size: 48px;
    margin-bottom: 18px;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.07); opacity: 0.75; }
}
.shield-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 12px;
}
.shield-body {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: 30px;
}
.shield-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gdv-red);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
}
.shield-btn:hover { background: var(--gdv-red-dark); }

/* ════════════════════════════════════════════════════════════
   PWA INSTALL OVERLAY
   ════════════════════════════════════════════════════════════ */
#install-overlay {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--dark-2);
    border-top: 3px solid var(--gdv-red);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 22px 20px 36px;
    z-index: 1000;
    box-shadow: 0 -16px 50px rgba(0,0,0,0.6);
    animation: slideUp 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
#install-overlay.active { display: block; }

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.install-handle {
    width: 34px; height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    margin: 0 auto 16px;
}
.install-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}
.install-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.55;
}
#btn-android-install {
    width: 100%;
    background: var(--gdv-red);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}
#btn-android-install:hover  { background: var(--gdv-red-dark); }
#btn-android-install:active { transform: scale(0.98); }

.ios-steps { display: flex; flex-direction: column; gap: 12px; }
.ios-step  { display: flex; align-items: flex-start; gap: 12px; }
.ios-step-num {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--gdv-red);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ios-step-text { font-size: 13px; color: var(--white); line-height: 1.5; padding-top: 2px; }
.ios-step-text strong { color: var(--gold-light); }
.ios-arrow {
    text-align: center;
    font-size: 24px;
    color: var(--gold);
    margin-top: 12px;
    animation: bounce 1.5s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}
.install-dismiss {
    margin-top: 14px;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--muted);
    padding: 10px;
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
}

/* ════════════════════════════════════════════════════════════
   SLIDE DECK (app.php)
   ════════════════════════════════════════════════════════════ */
#app-wrapper {
    position: fixed;
    inset: 0;
    background: var(--nav-dark);
}

#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gdv-red), var(--gold));
    transition: width 0.38s ease;
    z-index: 100;
}

#app-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(28,28,28,0.97);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 50;
}
.header-logo-img  { height: 28px; width: auto; }
.header-logo-text {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}
.header-logo-text span { color: var(--gdv-red); }
.slide-counter {
    font-size: 12px;
    color: rgba(255,255,255,0.38);
}

#slide-container { position: absolute; inset: 0; overflow: hidden; }

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.4,0,0.2,1),
                opacity   0.42s cubic-bezier(0.4,0,0.2,1);
    will-change: transform, opacity;
}
.slide.active { opacity: 1; transform: translateX(0); z-index: 2; }
.slide.prev   { opacity: 0; transform: translateX(-100%); z-index: 1; }

.slide-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.slide-placeholder {
    position: absolute; inset: 0;
    background: linear-gradient(160deg,#111 0%,#1c1c1c 50%,#2a2a2a 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
}
.slide-placeholder .ph-num {
    font-family: var(--font-display);
    font-size: 90px; font-weight: 300;
    color: rgba(181,18,27,0.12); line-height: 1;
}
.slide-placeholder .ph-label {
    font-size: 11px; color: rgba(255,255,255,0.15);
    letter-spacing: 3px; text-transform: uppercase;
}
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top,rgba(0,0,0,0.82) 0%,rgba(0,0,0,0.2) 45%,transparent 70%);
}
.slide-caption { position: relative; z-index: 3; padding: 0 20px 72px; }
.slide-tag {
    display: inline-block;
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    color: #fff; background: var(--gdv-red);
    padding: 3px 10px; border-radius: 3px; margin-bottom: 9px;
    font-family: var(--font-body); font-weight: 600;
}
.slide-title {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 700; line-height: 1.25;
    color: var(--white); margin-bottom: 7px;
}
.slide-desc {
    font-size: 13px; color: rgba(255,255,255,0.6);
    line-height: 1.65; max-width: 310px; font-weight: 300;
}

#dot-nav {
    position: fixed; bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 5px; z-index: 50;
}
.dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(255,255,255,0.22);
    transition: var(--transition); cursor: pointer;
}
.dot.active { background: var(--gdv-red); width: 16px; border-radius: 3px; }

#swipe-hint {
    position: fixed; bottom: 44px; left: 50%;
    transform: translateX(-50%);
    font-size: 11px; color: rgba(255,255,255,0.28);
    letter-spacing: 1px; text-transform: uppercase;
    white-space: nowrap; z-index: 50;
    animation: fadeHint 4s ease forwards;
}
@keyframes fadeHint { 0%,60% { opacity:1; } 100% { opacity:0; } }

/* ════════════════════════════════════════════════════════════
   LEAD CAPTURE FORM (final slide)
   ════════════════════════════════════════════════════════════ */
#slide-form {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    opacity: 0; transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.4,0,0.2,1),
                opacity   0.42s cubic-bezier(0.4,0,0.2,1);
    z-index: 2;
    background: var(--dark-2);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
#slide-form.active { opacity: 1; transform: translateX(0); }
#slide-form.prev   { opacity: 0; transform: translateX(-100%); }

.form-inner { flex: 1; padding: 72px 22px 52px; display: flex; flex-direction: column; }
.form-eyebrow {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 6px;
    font-family: var(--font-body); font-weight: 600;
}
.form-headline {
    font-family: var(--font-display); font-size: 30px;
    font-weight: 700; line-height: 1.2; color: var(--white); margin-bottom: 6px;
}
.form-sub { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 26px; }

.field-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.field { position: relative; }
.field label {
    display: block; font-size: 11px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--muted);
    margin-bottom: 5px; font-weight: 600;
}
.field input {
    width: 100%; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
    padding: 13px 12px; color: var(--white);
    font-family: var(--font-body); font-size: 14px;
    outline: none; transition: border-color 0.2s; -webkit-appearance: none;
}
.field input:focus { border-color: var(--gdv-red); background: rgba(181,18,27,0.05); }
.field input::placeholder { color: rgba(255,255,255,0.18); }

.consent-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.consent-line input[type="checkbox"] {
    flex-shrink: 0; width: 16px; height: 16px;
    accent-color: var(--gdv-red); margin-top: 2px;
}
.consent-line label { font-size: 12px; color: var(--muted); line-height: 1.5; }

#btn-submit {
    width: 100%; background: var(--gdv-red); color: #fff;
    border: none; padding: 15px; border-radius: var(--radius);
    font-family: var(--font-body); font-weight: 700; font-size: 14px;
    letter-spacing: 0.5px; text-transform: uppercase;
    cursor: pointer; transition: var(--transition); position: relative;
}
#btn-submit:hover  { background: var(--gdv-red-dark); }
#btn-submit:active { transform: scale(0.98); }
#btn-submit:disabled { opacity: 0.5; }

.btn-spinner {
    display: none; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.7s linear infinite;
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

#form-success {
    display: none; flex-direction: column;
    align-items: center; justify-content: center;
    flex: 1; text-align: center; padding: 40px 22px;
}
#form-success.active { display: flex; }
.success-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(39,174,96,0.1); border: 2px solid var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 18px; color: var(--green);
}
.success-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.success-body  { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 270px; }

.field-error { font-size: 12px; color: #e74c3c; margin-top: 4px; display: none; }
.field-error.visible { display: block; }

/* ════════════════════════════════════════════════════════════
   MEMBER PORTAL (index.php)
   ════════════════════════════════════════════════════════════ */
.portal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 22px 80px;
}

.portal-logo-wrap {
    display: flex; flex-direction: column;
    align-items: center; margin-bottom: 36px;
}
.portal-logo-img   { height: 42px; width: auto; margin-bottom: 6px; }
.portal-logo-text  {
    font-family: var(--font-body); font-size: 12px; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted);
}

.portal-card {
    width: 100%; max-width: 860px;
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.07);
    border-top: 3px solid var(--gdv-red);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    margin-bottom: 20px;
}
.portal-section-title {
    font-family: var(--font-display); font-size: 20px;
    font-weight: 700; color: var(--white); margin-bottom: 4px;
}
.portal-section-sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; line-height: 1.55; }

.portal-field { margin-bottom: 13px; }
.portal-field label {
    display: block; font-size: 11px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--muted);
    margin-bottom: 5px; font-weight: 600;
}
.portal-field input {
    width: 100%; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius);
    padding: 12px 12px; color: var(--white);
    font-family: var(--font-body); font-size: 14px;
    outline: none; transition: border-color 0.2s; -webkit-appearance: none;
}
.portal-field input:focus { border-color: var(--gdv-red); }
.portal-field input::placeholder { color: rgba(255,255,255,0.18); }

.btn-generate {
    width: 100%; background: var(--gdv-red); color: #fff;
    border: none; padding: 14px; border-radius: var(--radius);
    font-family: var(--font-body); font-weight: 700; font-size: 13px;
    letter-spacing: 0.5px; text-transform: uppercase;
    cursor: pointer; margin-top: 5px; transition: var(--transition);
}
.btn-generate:hover  { background: var(--gdv-red-dark); }
.btn-generate:active { transform: scale(0.98); }

.result-card {
    width: 100%; max-width: 860px;
    background: var(--dark-2);
    border: 1px solid rgba(232,160,32,0.22);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 22px; margin-bottom: 20px;
}
.result-label {
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 9px; font-weight: 700;
}
.result-link {
    display: block; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius);
    padding: 11px 12px; color: var(--gold-light); font-size: 12px;
    word-break: break-all; margin-bottom: 12px;
    font-family: 'Courier New', monospace;
}
.result-actions { display: flex; gap: 8px; }
.btn-copy, .btn-sms {
    flex: 1; padding: 11px; border-radius: var(--radius); border: none;
    font-family: var(--font-body); font-size: 12px; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    text-align: center; text-decoration: none; display: inline-block;
}
.btn-copy { background: rgba(255,255,255,0.06); color: var(--white); border: 1px solid rgba(255,255,255,0.1); }
.btn-sms  { background: var(--gdv-red); color: #fff; }
.btn-copy:hover  { background: rgba(255,255,255,0.1); }
.btn-sms:hover   { background: var(--gdv-red-dark); }
.btn-copy:active, .btn-sms:active { transform: scale(0.97); }

.qr-holder { margin-top: 18px; text-align: center; }
.qr-holder canvas, .qr-holder img { border-radius: var(--radius); background: white; padding: 8px; }
.qr-caption { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* ── Utility ──────────────────────────────────────────────── */
.text-red  { color: var(--gdv-red); }
.text-gold { color: var(--gold); }
.hidden    { display: none !important; }