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

.rsr-wrap *, .rsr-wrap *::before, .rsr-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.rsr-wrap {
    --navy:   #0E1A2B;
    --navy2:  #162436;
    --gold:   #C9A84C;
    --gold-lt:#e8c97a;
    --ivory:  #F5F0E8;
    --ivory2: #ede7d9;
    --text:   #2a1f10;
    --muted:  #6b6050;
    --green:  #2e7d32;
    --amber:  #b45309;
    --red:    #c62828;
    --radius: 20px;
    --shadow: 0 10px 50px rgba(14,26,43,.18);

    font-family: 'Jost', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--ivory);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 780px;
    margin: 40px auto;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,.25);
}

/* ── LANG BAR ── */
.rsr-lang-bar {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 6px; padding: 14px 28px 0; background: var(--navy);
}
.rsr-lang-btn {
    background: transparent; border: 1px solid rgba(201,168,76,.35);
    color: rgba(245,240,232,.5); font-family: 'Jost',sans-serif;
    font-size: 13px; font-weight: 600; letter-spacing: .1em;
    padding: 5px 13px; border-radius: 20px; cursor: pointer; transition: all .2s;
}
.rsr-lang-btn.active, .rsr-lang-btn:hover {
    background: var(--gold); border-color: var(--gold); color: var(--navy);
}
.rsr-lang-sep { color: rgba(201,168,76,.3); font-size: 12px; }

/* ── SLIDES ── */
.rsr-slide { display: none; }
.rsr-slide.active { display: block; }

/* ── INTRO SLIDE ── */
.rsr-intro {
    background: var(--navy);
    padding: 48px 48px 52px;
    text-align: center;
}
.rsr-logo-mark {
    font-size: 36px; color: var(--gold); margin-bottom: 16px;
    animation: rsr-pulse 3s ease-in-out infinite;
}
@keyframes rsr-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(.95)} }

.rsr-main-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 7vw, 56px);
    font-weight: 700; color: var(--gold);
    letter-spacing: .06em; line-height: 1.1; margin-bottom: 8px;
}
.rsr-main-subtitle {
    font-size: 15px; font-weight: 400; color: rgba(245,240,232,.55);
    letter-spacing: .18em; text-transform: uppercase; margin-bottom: 32px;
}
.rsr-intro-text {
    max-width: 560px; margin: 0 auto 36px;
    text-align: left;
}
.rsr-intro-text p {
    font-size: 17px; color: rgba(245,240,232,.8);
    line-height: 1.75; margin-bottom: 16px;
}

.rsr-how-to {
    background: rgba(255,255,255,.05); border: 1px solid rgba(201,168,76,.2);
    border-radius: 16px; padding: 28px 32px; max-width: 560px;
    margin: 0 auto 36px; text-align: left;
}
.rsr-howto-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px; font-weight: 600; color: var(--gold);
    margin-bottom: 20px;
}
.rsr-howto-steps { display: flex; flex-direction: column; gap: 16px; }
.rsr-howto-step { display: flex; align-items: flex-start; gap: 14px; }
.rsr-howto-num {
    min-width: 32px; height: 32px; background: var(--gold);
    color: var(--navy); font-weight: 700; font-size: 16px;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.rsr-howto-step p { font-size: 16px; color: rgba(245,240,232,.75); line-height: 1.65; }

/* ── DOMAIN SLIDE ── */
.rsr-domain-slide {
    padding: 40px 48px 48px;
    background: var(--ivory);
}

.rsr-progress-bar {
    height: 5px; background: var(--ivory2);
    border-radius: 4px; margin-bottom: 10px; overflow: hidden;
}
.rsr-progress-fill {
    height: 5px; background: var(--gold);
    border-radius: 4px; transition: width .4s ease;
}
.rsr-progress-text {
    font-size: 13px; color: var(--muted); margin-bottom: 28px;
    letter-spacing: .05em;
}

.rsr-domain-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.rsr-domain-icon { font-size: 36px; flex-shrink: 0; }
.rsr-domain-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700; color: var(--navy); line-height: 1.2;
}

.rsr-domain-desc {
    font-size: 16px; color: var(--muted); line-height: 1.8;
    margin-bottom: 36px;
    padding: 20px 24px;
    background: white;
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
}

/* ── SLIDER ── */
.rsr-slider-section {
    background: white; border: 1px solid rgba(201,168,76,.2);
    border-radius: 16px; padding: 28px 28px 24px; margin-bottom: 28px;
}
.rsr-slider-labels {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--muted); margin-bottom: 16px;
    font-weight: 500; letter-spacing: .02em;
}
.rsr-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px;
    background: linear-gradient(to right, var(--gold) 0%, var(--gold) 44%, #ddd 44%, #ddd 100%);
    border-radius: 6px; outline: none; cursor: pointer; margin-bottom: 20px;
}
.rsr-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 28px; height: 28px;
    background: var(--gold); border: 4px solid white;
    border-radius: 50%; box-shadow: 0 3px 12px rgba(201,168,76,.5);
    cursor: pointer; transition: transform .15s;
}
.rsr-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.rsr-slider::-moz-range-thumb {
    width: 28px; height: 28px; background: var(--gold);
    border: 4px solid white; border-radius: 50%; cursor: pointer;
}
.rsr-score-display {
    display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
.rsr-score-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px; font-weight: 700; color: var(--gold); line-height: 1;
}
.rsr-score-label {
    font-size: 20px; color: var(--muted); font-weight: 400;
}

/* ── BUTTONS ── */
.rsr-btn-start {
    display: block; width: 100%; padding: 18px 28px;
    background: var(--gold); color: var(--navy); border: none;
    border-radius: 50px; font-family: 'Jost', sans-serif;
    font-size: 17px; font-weight: 700; letter-spacing: .04em;
    text-align: center; cursor: pointer; transition: all .25s;
    text-decoration: none; max-width: 420px; margin: 0 auto;
}
.rsr-btn-start:hover {
    background: var(--gold-lt); transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,168,76,.4);
}
.rsr-btn-next {
    display: block; width: 100%; padding: 16px 28px;
    background: var(--navy); color: var(--gold); border: 2px solid var(--navy);
    border-radius: 50px; font-family: 'Jost', sans-serif;
    font-size: 17px; font-weight: 600; letter-spacing: .03em;
    text-align: center; cursor: pointer; transition: all .25s; margin-bottom: 12px;
}
.rsr-btn-next:hover {
    background: var(--gold); border-color: var(--gold); color: var(--navy);
    transform: translateY(-2px); box-shadow: 0 6px 24px rgba(201,168,76,.3);
}
.rsr-btn-prev {
    display: block; width: 100%; padding: 12px 24px;
    background: transparent; color: var(--muted);
    border: 1px solid var(--ivory2); border-radius: 50px;
    font-family: 'Jost', sans-serif; font-size: 15px;
    text-align: center; cursor: pointer; transition: all .2s;
}
.rsr-btn-prev:hover { border-color: var(--muted); color: var(--text); }

.rsr-btn-ghost {
    display: block; width: 100%; padding: 12px 24px;
    background: transparent; color: var(--muted);
    border: 1px solid var(--ivory2); border-radius: 50px;
    font-family: 'Jost', sans-serif; font-size: 15px;
    text-align: center; cursor: pointer; margin-top: 12px; transition: all .2s;
}
.rsr-btn-ghost:hover { border-color: var(--muted); color: var(--text); }

/* ── CAPTURE SLIDE ── */
.rsr-capture-box {
    padding: 48px; max-width: 520px; margin: 0 auto; text-align: center;
}
.rsr-capture-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px; font-weight: 700; color: var(--navy); margin-bottom: 12px;
}
.rsr-capture-sub {
    font-size: 17px; color: var(--muted); margin-bottom: 32px; line-height: 1.7;
}
.rsr-field { margin-bottom: 18px; text-align: left; }
.rsr-label {
    display: block; font-size: 14px; font-weight: 600; color: var(--navy);
    margin-bottom: 7px; letter-spacing: .03em;
}
.rsr-input {
    width: 100%; padding: 15px 18px; border: 1.5px solid var(--ivory2);
    border-radius: 10px; font-family: 'Jost', sans-serif; font-size: 16px;
    color: var(--text); background: white; transition: border-color .2s, box-shadow .2s; outline: none;
}
.rsr-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
.rsr-privacy { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.rsr-error {
    background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c;
    padding: 12px 16px; border-radius: 10px; font-size: 15px;
    margin-top: 14px; text-align: center;
}
.rsr-hidden { display: none !important; }
.rsr-loader { display: flex; justify-content: center; padding: 20px; }
.rsr-spinner {
    width: 36px; height: 36px; border: 3px solid var(--ivory2);
    border-top-color: var(--gold); border-radius: 50%;
    animation: rsr-spin .7s linear infinite;
}
@keyframes rsr-spin { to { transform: rotate(360deg); } }

/* ── RESULTS ── */
.rsr-results { padding: 48px; }
.rsr-results-header { text-align: center; margin-bottom: 36px; }
.rsr-greeting { font-size: 16px; color: var(--muted); margin-bottom: 10px; letter-spacing: .04em; }
.rsr-profile-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 5vw, 40px); font-weight: 700;
    color: var(--navy); margin-bottom: 16px;
}
.rsr-profile-desc {
    font-size: 17px; color: var(--muted); line-height: 1.8;
    max-width: 580px; margin: 0 auto 12px;
}
.rsr-submitted-at {
    font-size: 13px; color: var(--muted); opacity: .65; letter-spacing: .05em;
}

.rsr-stats-row {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 14px; margin-bottom: 28px;
}
.rsr-stat-card {
    background: white; border: 1px solid var(--ivory2);
    border-radius: 14px; padding: 18px 12px;
    text-align: center; display: flex; flex-direction: column; gap: 6px;
}
.rsr-stat-green { border-color: rgba(46,125,50,.25); background: #f0fdf4; }
.rsr-stat-amber { border-color: rgba(180,83,9,.25); background: #fffbeb; }
.rsr-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px; font-weight: 700; color: var(--gold); line-height: 1;
}
.rsr-stat-icon { font-size: 20px; }
.rsr-stat-label {
    font-size: 12px; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted);
}
.rsr-stat-detail { font-size: 13px; color: var(--text); font-weight: 500; line-height: 1.4; }

.rsr-chart-wrap {
    background: white; border: 1px solid var(--ivory2);
    border-radius: var(--radius); padding: 28px;
    margin-bottom: 24px; max-width: 460px;
    margin-left: auto; margin-right: auto;
}

/* Critical zones */
.rsr-zones-box {
    background: white; border: 1px solid var(--ivory2);
    border-radius: 16px; padding: 28px; margin-bottom: 24px;
}
.rsr-zones-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px; font-weight: 700; color: var(--navy);
    margin-bottom: 14px;
}
.rsr-zones-list {
    list-style: none; margin-bottom: 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.rsr-zones-list li {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; color: var(--text); font-weight: 500;
}
.rsr-zones-list li::before {
    content: '⚠️'; font-size: 16px; flex-shrink: 0;
}
.rsr-zones-note {
    font-size: 15px; color: var(--muted); line-height: 1.7;
    border-top: 1px solid var(--ivory2); padding-top: 16px; margin-top: 4px;
}

/* CTA */
.rsr-cta-box {
    background: var(--navy); border-radius: var(--radius);
    padding: 36px 32px; text-align: center; margin-bottom: 24px;
}
.rsr-cta-text {
    font-size: 17px; color: rgba(245,240,232,.82);
    line-height: 1.75; margin-bottom: 22px;
}
.rsr-btn-booking {
    background: var(--gold); color: var(--navy) !important;
    border: none; display: inline-block; width: auto;
    padding: 16px 36px; text-decoration: none;
}
.rsr-btn-booking:hover { background: var(--gold-lt); color: var(--navy) !important; }

.rsr-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.rsr-action-btn {
    padding: 12px 22px; background: white;
    border: 1.5px solid var(--ivory2); border-radius: 50px;
    font-family: 'Jost', sans-serif; font-size: 15px;
    font-weight: 500; color: var(--text); cursor: pointer; transition: all .2s;
}
.rsr-action-btn:hover { border-color: var(--gold); color: var(--navy); transform: translateY(-1px); }

/* ── PRINT ── */
@media print {
    .rsr-lang-bar, .rsr-actions, .rsr-cta-box, #rsrSlide0,
    #rsrSlideCapture, .rsr-domain-slide { display: none !important; }
    .rsr-wrap { box-shadow: none; border: none; max-width: 100%; }
    #rsrSlideResults { display: block !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .rsr-intro, .rsr-domain-slide, .rsr-capture-box, .rsr-results { padding: 28px 20px 32px; }
    .rsr-how-to { padding: 20px; }
    .rsr-stats-row { grid-template-columns: 1fr; }
    .rsr-domain-header { flex-direction: column; text-align: center; }
    .rsr-domain-desc { padding: 16px 18px; }
}

/* ── DESKTOP — larger typography on wide screens ── */
@media (min-width: 768px) {
    .rsr-wrap {
        font-size: 19px;
    }
    .rsr-intro-text p {
        font-size: 19px;
    }
    .rsr-howto-step p {
        font-size: 18px;
    }
    .rsr-domain-desc {
        font-size: 18px;
    }
    .rsr-slider-labels span {
        font-size: 15px;
    }
    .rsr-capture-sub {
        font-size: 19px;
    }
    .rsr-input {
        font-size: 17px;
        padding: 16px 20px;
    }
    .rsr-label {
        font-size: 15px;
    }
    .rsr-profile-desc {
        font-size: 19px;
    }
    .rsr-cta-text {
        font-size: 19px;
    }
    .rsr-privacy {
        font-size: 15px;
    }
    .rsr-zones-note {
        font-size: 17px;
    }
    .rsr-zones-list li {
        font-size: 17px;
    }
    .rsr-action-btn {
        font-size: 16px;
        padding: 13px 26px;
    }
    .rsr-stat-detail {
        font-size: 14px;
    }
    .rsr-progress-text {
        font-size: 14px;
    }
}
