/* ==========================================================================
   SÃO GONÇALO PISCINAS E SPAS - LIGHT & LUMINOUS QUIZ SIMULADOR
   Design System: Crystal Water White, Royal Navy & Champagne Gold
   ========================================================================== */

:root {
    /* Backgrounds Claros & Refrescantes */
    --bg-body: #F4F8FC;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFD;
    
    /* Tons Nobres de Ouro / Champagne */
    --gold-primary: #C5A880;
    --gold-light: #DFCAAB;
    --gold-dark: #9A7B56;
    --gold-gradient: linear-gradient(135deg, #DFCAAB 0%, #C5A880 50%, #9A7B56 100%);
    --gold-button: linear-gradient(135deg, #DFCAAB 0%, #C5A880 100%);
    
    /* Azul Orbe & Água Cristalina */
    --blue-primary: #0284C7;
    --blue-navy: #0A1931;
    --blue-dark: #061224;
    --cyan-water: #0EA5E9;
    --cyan-soft: rgba(14, 165, 233, 0.08);
    
    /* Textos com Alto Contraste & Elegância */
    --text-title: #0A1931;
    --text-body: #334155;
    --text-muted: #64748B;
    
    /* Bordas & Sombras Claras */
    --border-card: rgba(2, 132, 199, 0.12);
    --border-gold: rgba(197, 168, 128, 0.45);
    --border-light: #E2E8F0;
    
    --shadow-card: 0 20px 45px -10px rgba(10, 25, 49, 0.08), 0 2px 8px rgba(10, 25, 49, 0.03);
    --shadow-card-hover: 0 24px 50px -8px rgba(2, 132, 199, 0.16), 0 4px 14px rgba(10, 25, 49, 0.05);
    
    /* Tipografia */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 100% 40%, rgba(197, 168, 128, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 0% 80%, rgba(2, 132, 199, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #F8FAFC 0%, #EEF4FA 100%);
    background-attachment: fixed;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.quiz-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(10, 25, 49, 0.03);
    padding: 16px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.quiz-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(10, 25, 49, 0.08));
}

.orbe-seal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-navy);
    border: 1px solid var(--border-gold);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(197, 168, 128, 0.15);
}

.orbe-seal i {
    color: var(--gold-dark);
}

/* Main Container */
.quiz-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
}

.quiz-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 620px;
    padding: 44px 38px;
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
}

/* Progress bar */
.progress-container {
    margin-bottom: 28px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--blue-navy);
    letter-spacing: 0.5px;
}

.progress-bar-wrapper {
    background-color: #E2E8F0;
    height: 7px;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    background: var(--gold-gradient);
    height: 100%;
    width: 20%;
    border-radius: var(--radius-full);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.5);
}

/* Navigation & Title */
.card-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 10px;
}

.btn-back {
    background: none;
    border: none;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition);
    padding: 4px 0;
}

.btn-back:hover {
    color: var(--blue-primary);
    transform: translateX(-3px);
}

.quiz-step-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--blue-navy);
    font-weight: 800;
    text-align: left;
    width: 100%;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.quiz-step-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.5;
    font-weight: 500;
}

/* Step content transitions */
.quiz-step {
    display: none;
    animation: fadeInStep 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Screen Styles & Profile Avatar */
.quiz-welcome-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.quiz-avatar-wrapper {
    position: relative;
    width: 115px;
    height: 115px;
    margin: 0 auto 18px auto;
}

.quiz-avatar-wrapper::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: var(--gold-gradient);
    z-index: 1;
    box-shadow: 0 6px 18px rgba(197, 168, 128, 0.45);
    animation: rotateBorder 10s linear infinite;
}

@keyframes rotateBorder {
    100% { transform: rotate(360deg); }
}

.quiz-avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    object-fit: cover;
    object-position: center 30%;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(10, 25, 49, 0.1);
}

.quiz-avatar-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--gold-gradient);
    color: #061224;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #FFFFFF;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--blue-navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.welcome-desc {
    font-size: 0.94rem;
    color: var(--text-muted);
    max-width: 90%;
    margin: 0 auto 20px auto;
    line-height: 1.6;
    font-weight: 500;
}

.welcome-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--blue-navy);
    background: #F0F7FF;
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.welcome-badge i {
    color: var(--gold-dark);
}

/* Interactive Cards Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
    margin-bottom: 25px;
}

.option-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    user-select: none;
    box-shadow: 0 2px 6px rgba(10, 25, 49, 0.02);
}

.option-card:hover {
    border-color: rgba(2, 132, 199, 0.5);
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.12);
}

.option-card.selected {
    border-color: var(--blue-primary);
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 100%);
    box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.2);
}

.option-icon {
    font-size: 1.6rem;
    color: var(--blue-primary);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F7FF;
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: var(--transition);
}

.option-card:hover .option-icon,
.option-card.selected .option-icon {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-navy) 100%);
    color: #FFFFFF;
    border-color: transparent;
    transform: scale(1.05);
}

.option-text {
    flex-grow: 1;
}

.option-text h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--blue-navy);
    font-weight: 700;
    margin-bottom: 3px;
}

.option-text p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 500;
}

/* Radio circle inside card */
.option-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.option-card.selected .option-check {
    border-color: var(--blue-primary);
    background-color: var(--blue-primary);
}

.option-check::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FFFFFF;
    transform: scale(0);
    transition: var(--transition);
}

.option-card.selected .option-check::after {
    transform: scale(1);
}

/* Form input styles */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--blue-navy);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--blue-navy);
    background-color: #FFFFFF;
    transition: var(--transition);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-control::placeholder {
    color: #94A3B8;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    font-family: var(--font-heading);
    font-weight: 800;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    width: 100%;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #061224;
    box-shadow: 0 8px 24px -4px rgba(197, 168, 128, 0.45);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(197, 168, 128, 0.65);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-secondary {
    background: #F0F7FF;
    color: var(--blue-navy);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gold-gradient);
    color: #061224;
    transform: translateY(-2px);
}

/* Shimmer shine effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-25deg);
    animation: btnShine 4s infinite ease-in-out;
}

@keyframes btnShine {
    0% { left: -150%; }
    25% { left: 150%; }
    100% { left: 150%; }
}

/* Footer minimal */
.quiz-footer {
    text-align: center;
    padding: 24px 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: #FFFFFF;
    border-top: 1px solid var(--border-light);
}

/* Modal and Water Loader Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 49, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.success-container {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 44px 30px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(10, 25, 49, 0.2);
    border: 1px solid var(--border-light);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .success-container {
    transform: translateY(0);
}

.water-loader-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 26px auto;
}

.water-loader {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid rgba(2, 132, 199, 0.2);
    position: relative;
    overflow: hidden;
    background: #F0F7FF;
    box-shadow: 0 0 25px rgba(2, 132, 199, 0.15);
    transition: border-color 0.4s ease;
}

.water-wave {
    position: absolute;
    width: 220%;
    height: 220%;
    background: var(--gold-gradient);
    border-radius: 38%;
    left: -60%;
    bottom: -160%;
    animation: fillWater 2.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards, rotateWave 5s linear infinite;
    z-index: 1;
}

.success-check-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: #061224;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fillWater {
    0% { bottom: -160%; }
    100% { bottom: -12%; }
}

@keyframes rotateWave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.water-loader.loaded {
    border-color: var(--gold-primary);
}

.water-loader.loaded .success-check-icon {
    transform: translate(-50%, -50%) scale(1);
}

.success-title {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    color: var(--blue-navy);
    margin-bottom: 10px;
    font-weight: 800;
}

.success-message {
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-bottom: 26px;
    line-height: 1.55;
    font-weight: 500;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quiz-main {
        padding: 24px 16px;
    }
    
    .quiz-card {
        padding: 30px 20px;
        border-radius: var(--radius-md);
    }
    
    .quiz-step-title {
        font-size: 1.35rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .quiz-header {
        padding: 14px 16px;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .orbe-seal {
        font-size: 0.68rem;
        padding: 4px 10px;
    }
    
    .quiz-main {
        padding: 16px 12px;
    }
    
    .quiz-card {
        padding: 24px 16px;
    }
    
    .quiz-step-title {
        font-size: 1.25rem;
    }
    
    .option-card {
        padding: 14px 14px;
        gap: 12px;
    }
    
    .option-icon {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }
    
    .welcome-title {
        font-size: 1.35rem;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 0.94rem;
    }
}
