body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #002244;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
}

body::before, body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('background 1.jpeg');
    z-index: -1;
    animation: crossfade 12s infinite alternate;
}

body::after {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('background 2.jpeg');
    z-index: -2;
}

@keyframes crossfade {
    0%, 35% { opacity: 1; }
    65%, 100% { opacity: 0; }
}

#app-container {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    border: 1px solid rgba(0, 51, 102, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 34, 68, 0.1);
    overflow: hidden;
    position: relative;
}

.header {
    text-align: center;
    padding: 30px;
    background: #003366; /* Deep GFA Blue */
    border-bottom: 4px solid #d4af37; /* Elegant Gold */
}

.header img {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: #ffffff;
    letter-spacing: 1px;
}

.content {
    padding: 30px;
    box-sizing: border-box;
}

/* Form Styles */
.form-section {
    margin-bottom: 30px;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    border-left: 5px solid #d4af37;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.form-section h2 {
    margin-top: 0;
    font-size: 18px;
    color: #003366;
    border-bottom: 1px solid #e1e8ed;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group.row {
    flex-direction: row;
    gap: 15px;
}

.form-group.row > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #002244;
    font-weight: 500;
}

input[type="text"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    color: #002244;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #003366;
    background: #fafcff;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio & Checkbox */
.radio-group, .checkbox-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 5px;
}

.radio-item, .checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-item input, .checkbox-item input {
    accent-color: #003366;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-item label, .checkbox-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 25px;
    background: #d4af37;
    color: #002244;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn:hover {
    background: #e6c147;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn:disabled {
    background: #e0e0e0;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn:active {
    transform: translateY(0);
}

.btn.full-width {
    width: 100%;
}

/* Gate Section */
#gate-section {
    text-align: center;
    padding: 50px 20px;
}

#gate-section p {
    color: #4a5c6e;
    margin-bottom: 30px;
    line-height: 1.5;
}

.gate-inputs {
    max-width: 300px;
    margin: 0 auto 20px;
    text-align: left;
}

/* Admin Button */
.admin-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 8px 15px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 30px;
    border-radius: 4px;
    transition: all 0.2s;
}

.admin-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Error messages */
.error-msg {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
    display: none;
}

/* Read Only Mode */
.read-only input, 
.read-only select, 
.read-only textarea {
    background: #f8fafc !important;
    border-color: #f1f5f9 !important;
    color: #003366 !important;
    font-weight: 600 !important;
    opacity: 1 !important; /* Force opacity for disabled items */
    -webkit-text-fill-color: #003366 !important; /* Force text color on WebKit for disabled items */
    cursor: default;
}

.read-only .checkbox-group, .read-only .radio-group {
    pointer-events: none;
    opacity: 0.9 !important;
}

.readonly-banner {
    background: #e6f4ea;
    color: #137333;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid #ceead6;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.readonly-banner h3 { margin: 0; font-size: 18px; }
.readonly-banner p { margin: 0; font-size: 14px; }

/* Success Message */
.success-message {
    text-align: center;
    padding: 50px 20px;
}

.success-message h2 {
    color: #003366;
    font-size: 28px;
    margin-bottom: 15px;
}

.success-message p {
    color: #4a5c6e;
    font-size: 16px;
    line-height: 1.6;
}

/* Utility Classes */
.hidden { display: none !important; }

/* Responsive Design for Mobile Devices */
@media (max-width: 650px) {
    body {
        padding: 10px;
    }

    .form-group.row {
        flex-direction: column;
        gap: 15px;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .header img {
        max-width: 110px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .radio-group, .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
