* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* STI Official Colors */
    --sti-blue: #003DA5;
    --sti-blue-dark: #002866;
    --sti-blue-light: #0052D9;
    --sti-yellow: #FFD100;
    --sti-yellow-dark: #E6BC00;
    --sti-yellow-light: #FFDF4D;

    /* UI Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-white: #ffffff;
    --bg-main: #ffffff;
    --bg-secondary: #F8F9FE;
    --bg-gradient: linear-gradient(135deg, #003DA5 0%, #0052D9 100%);
    --bg-gradient-yellow: linear-gradient(135deg, #FFD100 0%, #FFDF4D 100%);
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --error-color: #EF4444;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 61, 165, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 61, 165, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #002866 0%, #003DA5 50%, #0052D9 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-yellow);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    background: white;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo h1 {
    color: var(--text-white);
    font-size: 2.25rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.logo p {
    color: var(--sti-yellow);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Main Content */
main {
    background: var(--bg-main);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.intro {
    text-align: center;
    margin-bottom: 45px;
    padding-bottom: 35px;
    border-bottom: 2px solid var(--sti-yellow);
    position: relative;
}

.intro::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--sti-blue);
    border-radius: 2px;
}

.intro h2 {
    color: var(--sti-blue);
    font-size: 1.75rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.intro p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Form */
.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--sti-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-main);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23003DA5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
}

.form-group select option {
    padding: 10px;
    background: white;
    color: var(--text-primary);
}

.form-group select option:first-child {
    color: var(--text-secondary);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--sti-yellow);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sti-blue);
    box-shadow: 0 0 0 4px rgba(0, 61, 165, 0.1);
    background: #FAFBFF;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* File Upload */
.file-upload-area {
    border: 3px dashed var(--sti-yellow);
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, #FEFEFF, #F8F9FE);
}

.file-upload-area:hover {
    border-color: var(--sti-blue);
    background: linear-gradient(to bottom, #F0F5FF, #E8EFFF);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.file-upload-area.dragover {
    border-color: var(--sti-blue);
    background: linear-gradient(to bottom, #E8EFFF, #D9E7FF);
    box-shadow: 0 0 0 4px rgba(255, 209, 0, 0.2);
}

.upload-prompt svg {
    color: var(--sti-blue);
    margin-bottom: 15px;
}

.upload-prompt p {
    color: var(--sti-blue);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.upload-prompt span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.file-item-info svg {
    flex-shrink: 0;
}

.file-item-name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.file-item-remove {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

.file-item-remove:hover {
    opacity: 0.7;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid var(--sti-yellow-light);
}

.privacy-notice svg {
    flex-shrink: 0;
    color: var(--sti-blue);
}

.privacy-notice p {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

/* Buttons */
.submit-btn,
.secondary-btn {
    width: 100%;
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn {
    background: var(--bg-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    background: var(--sti-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.secondary-btn {
    background: white;
    color: var(--sti-blue);
    border: 3px solid var(--sti-blue);
    margin-top: 15px;
}

.secondary-btn:hover {
    background: var(--sti-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 50px 40px;
    border-radius: 16px;
}

.success-message {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 2px solid var(--success-color);
}

.success-message svg {
    color: var(--success-color);
    margin-bottom: 25px;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
}

.success-message h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
}

.error-message {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 2px solid var(--error-color);
    color: var(--error-color);
    margin-top: 20px;
    padding: 20px;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-links {
    margin-bottom: 18px;
}

.admin-links a {
    color: var(--sti-blue);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
}

.admin-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sti-yellow);
    transition: width 0.3s ease;
}

.admin-links a:hover {
    color: var(--sti-blue-dark);
}

.admin-links a:hover::after {
    width: 100%;
}

.admin-links span {
    color: var(--border-color);
    margin: 0 5px;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--sti-blue);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    main {
        padding: 30px 20px;
    }

    header {
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .logo p {
        font-size: 0.9rem;
    }

    .intro h2 {
        font-size: 1.5rem;
    }

    .submit-btn,
    .secondary-btn {
        font-size: 1rem;
        padding: 14px 24px;
    }

    .file-upload-area {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    main {
        padding: 25px 15px;
        border-radius: 12px;
    }

    header {
        padding: 25px 15px;
        border-radius: 12px;
    }

    .logo h1 {
        font-size: 1.75rem;
    }

    .intro h2 {
        font-size: 1.3rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}