:root {
    --brand-bg: #FFFFFF;
    --brand-bg-alt: #F4F9FC;
    --brand-primary: #002856;
    --brand-light: #00A7E1;
    --brand-light-glow: #e6f6fd; 
    --text-main: #002856;
    --text-dim: #4A6583;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 167, 225, 0.3);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--brand-bg);
    overflow-x: hidden;
}

.magic-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--brand-light);
    font-weight: 700;
}

.text-accent {
    color: var(--brand-light);
}

/* Password Gate */
.gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, var(--brand-bg) 0%, var(--brand-bg-alt) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gate-content {
    text-align: center;
    padding: 40px;
    animation: floatGift 3s ease-in-out infinite;
}

.gift-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(0, 167, 225, 0.3));
}

@keyframes floatGift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.gate-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--brand-primary);
}

.gate-content p {
    color: var(--text-dim);
    margin-bottom: 30px;
}

.magic-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.magic-form input {
    background: #ffffff;
    border: 2px solid var(--brand-light);
    color: var(--brand-primary);
    padding: 15px 25px;
    border-radius: 30px;
    width: 300px;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.magic-form input:focus {
    box-shadow: 0 0 15px rgba(0, 167, 225, 0.2);
    border-color: var(--brand-primary);
}

.btn-glow {
    background: linear-gradient(45deg, var(--brand-light), #1EBCED);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 167, 225, 0.3);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 167, 225, 0.4);
    background: var(--brand-primary);
}

.btn-glow.large {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

.btn-glow.outline {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    box-shadow: none;
}

.btn-glow.outline:hover {
    background: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 40, 86, 0.3);
}

.error-msg {
    color: #E53935;
    margin-top: 15px;
    height: 20px;
    font-weight: 600;
}

/* Split Screen Layout */
main {
    display: flex;
    min-height: 100vh;
    opacity: 1;
    transition: opacity 1s;
}

main.hidden {
    opacity: 0;
    display: none;
}

/* Left Panel */
.left-panel {
    width: 45%;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: linear-gradient(180deg, var(--brand-bg) 0%, var(--brand-bg-alt) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    overflow: hidden;
    border-right: 1px solid rgba(0,40,86,0.1);
}

.brand-info {
    z-index: 10;
}

.logo-glow {
    width: 120px;
    margin-bottom: 30px;
    /* Removed heavy shadow for white background so logo is crisp */
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.left-panel h2 {
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--brand-primary);
}

.left-panel h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--brand-light);
}

.tagline {
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Scenery (Updated for Light Theme) */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background: var(--brand-light); /* Light blue snow/stars */
    border-radius: 50%;
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(0.8); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Right Panel */
.right-panel {
    width: 55%;
    margin-left: 45%;
    padding: 60px;
    background-color: var(--brand-bg);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.magic-section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards;
}

.magic-section:nth-child(1) { animation-delay: 0.2s; }
.magic-section:nth-child(2) { animation-delay: 0.4s; }
.magic-section:nth-child(3) { animation-delay: 0.6s; }
.magic-section:nth-child(4) { animation-delay: 0.8s; }

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

.section-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--brand-bg-alt);
    padding-bottom: 15px;
}

.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--brand-light);
    font-weight: bold;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--brand-primary);
}

/* Premium Grid */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.premium-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.premium-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.5s ease;
}

.premium-card h4 {
    font-weight: 600;
    color: var(--brand-primary);
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,40,86,0.1);
    border-color: var(--brand-light);
}

.premium-card:hover img {
    transform: scale(1.05);
}

.premium-card.selected {
    background: var(--brand-bg-alt);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px var(--brand-primary);
}

.premium-card.selected::after {
    content: '★';
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--brand-primary);
    font-size: 1.5rem;
}

/* Float Label Inputs */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 500px;
}

.input-group {
    position: relative;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: var(--brand-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group select {
    appearance: none;
    background: #ffffff;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--text-dim);
    transition: all 0.3s;
    pointer-events: none;
    background: var(--brand-bg);
    padding: 0 5px;
    font-weight: 500;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--brand-light);
    background: #ffffff;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--brand-light);
    font-weight: 600;
}

/* Summary Box */
.summary-box {
    background: var(--brand-bg-alt);
    border-left: 4px solid var(--brand-primary);
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
    max-width: 500px;
}

.summary-box h3 {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--brand-primary);
}

.summary-box p {
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.dim {
    color: var(--text-dim);
    font-style: italic;
}

.submit-section {
    text-align: left;
}

.feedback-msg {
    margin-top: 15px;
    color: #E53935;
    font-weight: 600;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,40,86,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s;
    backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.glass-card {
    background: #ffffff;
    border: 2px solid var(--brand-light);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,40,86,0.3);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay:not(.hidden) .glass-card {
    transform: scale(1);
}

.glass-card h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.glass-card p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.sub-text {
    color: var(--text-dim);
    margin-bottom: 30px !important;
}

@media (max-width: 1000px) {
    main {
        flex-direction: column;
    }
    .left-panel {
        width: 100%;
        position: relative;
        height: auto;
        padding: 40px 20px;
        min-height: unset;
        border-right: none;
        border-bottom: 1px solid rgba(0,40,86,0.1);
    }
    .right-panel {
        width: 100%;
        margin-left: 0;
        padding: 40px 20px;
    }
}
