/* 1. THEME VARIABLES */
:root {
    --excel-green: #1D6F42;
    --navy: #1e3a8a;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

/* 2. GLOBAL RESET */
* { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* 3. MAIN CONTAINER */
.form-container {
    background: white;
    max-width: 450px;
    width: 100%;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top: 8px solid var(--excel-green);
}

/* 4. LOGO FIX - Desktop (Safe Mode) */
.logo-wrapper { 
    text-align: center; 
    width: 100%;
    height: 100px;        /* Fixed window height */
    overflow: hidden;     
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.brand-logo { 
    height: 100%;         /* Fits exactly in the 100px window on PC */
    width: auto; 
    object-fit: contain;  /* Ensures no cropping on PC */
}

/* 5. HEADER & TEXT */
.header { text-align: center; margin-bottom: 25px; }
h1 { color: var(--navy); font-size: 24px; font-weight: 700; margin: 0; }
.subtitle { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* 6. FORM ELEMENTS (Matching your 80-line HTML) */
fieldset { border: none; margin-bottom: 20px; }
legend { font-size: 11px; font-weight: 700; color: var(--excel-green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-main);
}

/* 7. SUBMIT BUTTON */
button#submitBtn {
    width: 100%;
    background: var(--navy);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

/* 8. SUCCESS MESSAGE */
.success-box { text-align: center; padding: 20px; }
.check-icon { width: 50px; height: 50px; background: #dcfce7; color: var(--excel-green); font-size: 24px; line-height: 50px; border-radius: 50%; margin: 0 auto 15px; }

/* 9. THE ULTIMATE MOBILE FIX (Only triggers on phones) */
@media (max-width: 480px) {
    body { 
        padding: 10px; 
        align-items: flex-start; /* Keeps form at the top */
    }
    
    .form-container { 
        padding: 20px 15px; 
        margin-top: 10px; 
    }

    .logo-wrapper { 
        height: 75px;      /* Shorter window for phone */
    }
    
    .brand-logo { 
        height: 220px !important; /* ZOOM IN: Forces the white space off-screen */
        max-width: none;          /* Allows the image to expand past the window */
        transform: translateY(-5px); 
    }
    
    h1 { font-size: 20px; }
}