:root {
    /* Color Palette - Deep Forest & Gold */
    --primary-green: #0F2F24;
    --darker-green: #05140E;
    --gold: #D4AF37;
    --gold-light: #E5C15D;
    --gold-glow: rgba(212, 175, 55, 0.4);

    --text-main: #FFFFFF;
    --text-muted: #rgba(255, 255, 255, 0.7);
    --cream: #FFFDD0;

    /* Glass Effect */
    --glass-bg: rgba(0, 20, 15, 0.6);
    --glass-border: rgba(212, 175, 55, 0.3);
    --glass-blur: 20px;

    --success: #28a745;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--primary-green);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient Background */
.background-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at top left, #1A4D3B, #0F2F24, #000000);
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
    filter: blur(40px);
    animation: floating 10s infinite ease-in-out;
}

.circle-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    animation-delay: 0s;
}

.circle-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(26, 77, 59, 0.3), transparent 70%);
    animation-delay: -5s;
}

@keyframes floating {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 30px);
    }
}

/* Main Container */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Header & Branding */
.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 15px;
}

.brand-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.brand-title {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Steps & Animation */
.step-wrapper {
    position: relative;
    min-height: 400px;
}

.step {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-family: var(--font-heading);
    color: var(--cream);
    font-size: 1.8rem;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.section-desc,
.step-idx {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
    /* Increased to 60px as requested */
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gold-light);
    font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background: rgba(255, 255, 255, 0.1);
}

/* Custom Radio Groups */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-card span {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.radio-card:hover span {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-light);
}

.radio-card input:checked+span {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Centered Tutorial Legend */
/* Centered Tutorial Legend - Compact */
.centered-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    /* Reduced gap */
    text-align: left;
    max-width: 100%;
    margin: 20px 0;
    /* Reduced margin */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 20px;
    /* Reduced padding */
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.centered-buttons {
    margin-top: 20px;
    justify-content: center;
}

.divider-vertical {
    display: none;
}

.rating-visual {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Reduced gap */
    margin-top: 15px;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Reduced gap */
    font-size: 0.85rem;
    /* Smaller font */
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 10px;
    /* Reduced padding */
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: transform 0.2s;
}

.rating-item:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.05);
}

.rating-item .bubble {
    width: 30px;
    /* Smaller bubble */
    height: 30px;
    /* Smaller bubble */
    border-radius: 50%;
    background: var(--gradient-glass);
    border: 1px solid var(--gold);
    color: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    /* Smaller number */
    font-family: var(--font-heading);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.centered-legend .legend-group h4 {
    font-size: 0.95rem;
    /* Smaller heading */
    color: var(--gold);
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 6px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Responsive for Tutorial */
@media (max-width: 768px) {
    .centered-legend {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Matrix Questions */
.matrix-question {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.question-text {
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 500;
}

.matrix-scales {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    /* Further increased gap for clear separation */
}

.scale-group {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.scale-group:first-child {
    border-left: none;
    padding-left: 0;
}

.scale-group label {
    font-size: 0.85rem;
    /* Slightly larger */
    color: var(--gold-light);
    /* Highlight label */
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

/* Dynamic Rating Bubbles */
.rating-options {
    display: flex;
    justify-content: flex-start;
    /* Left align */
    gap: 8px;
    /* Tighter gap between numbers */
}

.rating-bubble {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rating-bubble:hover {
    border-color: var(--gold);
    transform: scale(1.1);
}

.rating-bubble.selected {
    background: var(--gold);
    color: var(--primary-green);
    border-color: var(--gold);
    font-weight: bold;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Vertical Radio Group */
.radio-group.vertical-group {
    flex-direction: column;
}

.radio-group.vertical-group .radio-card {
    min-width: 100%;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-body);
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}

/* Split Columns for Final Step */
.split-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .split-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

button {
    cursor: pointer;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary,
.btn-start,
.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover,
.btn-start:hover,
.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-prev {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

/* Thank You Screen */
.thank-you-content {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.8s ease;
}

.check-icon {
    width: 80px;
    height: 80px;
    background: var(--gold);
    color: var(--primary-green);
    border-radius: 50%;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px var(--gold-glow);
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-card {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .matrix-scales {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rating-bubble {
        width: 40px;
        height: 40px;
    }

    .step-title {
        font-size: 1.4rem;
    }
}