:root {
    /* Brand Colors */
    --primary: #20335E;
    --secondary-yellow: #FFCE40;
    --secondary-teal: #4ABDD0;
    --secondary-dark-teal: #398F9D;
    --secondary-deep-teal: #1A5963;

    /* UI Colors */
    --bg-gradient-start: #f0f4f8;
    --bg-gradient-end: #d9e2ec;
    --text-main: #102a43;
    --text-light: #627d98;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px rgba(32, 51, 94, 0.1);

    /* Spacing & Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-image: linear-gradient(rgba(32, 51, 94, 0.85), rgba(32, 51, 94, 0.7)), url('assets/church_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 800px;
    min-height: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 12px;
}

.tagline {
    color: var(--secondary-dark-teal);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sections */
section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Hero */
.hero-content h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary-deep-teal));
    color: var(--white);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(32, 51, 94, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 51, 94, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* Quiz */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 0;
    left: 0;
}

.progress-bar {
    height: 100%;
    background: var(--secondary-teal);
    width: 0%;
    transition: width 0.4s ease;
}

.question-card {
    width: 100%;
    max-width: 600px;
}

.question-text {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 32px;
    font-weight: 700;
}

.options-grid {
    display: grid;
    gap: 16px;
    width: 100%;
}

.option-btn {
    background: var(--white);
    border: 2px solid transparent;
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: left;
    font-size: 1rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    border-color: var(--secondary-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 189, 208, 0.2);
}

.option-btn:active {
    transform: scale(0.98);
}

/* Lead Form */
.lead-form-container {
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-teal);
}

/* Results */
.results-header {
    margin-bottom: 32px;
}

.results-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 8px;
}

.top-match {
    background: linear-gradient(135deg, var(--primary), var(--secondary-deep-teal));
    color: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    width: 100%;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.match-badge {
    background: var(--secondary-yellow);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.match-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.match-desc {
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.5;
}

.match-percentage {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
}

.curriculum-details {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    width: 100%;
    text-align: left;
}

.curriculum-details h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-yellow);
    padding-bottom: 8px;
    display: inline-block;
}

.level-item {
    margin-bottom: 16px;
}

.level-title {
    font-weight: 700;
    color: var(--secondary-dark-teal);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.level-content {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Optional Programs */
.optional-programs-section {
    margin-top: 40px;
    width: 100%;
}

.optional-programs-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.optional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.optional-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.optional-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-teal);
}

.optional-score {
    background: var(--secondary-teal);
    color: var(--white);
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.optional-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary);
    line-height: 1.3;
}

.arrow {
    color: var(--secondary-yellow);
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: auto;
}

@media (max-width: 600px) {
    .app-container {
        border-radius: 0;
        height: 100vh;
        max-height: none;
    }

    section {
        padding: 24px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .question-text {
        font-size: 1.2rem;
    }
}