:root {
    --primary-color: #007A33; /* FUDMA Green */
    --primary-light: #00a846;
    --secondary-color: #FFD700; /* FUDMA Gold */
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --error-color: #ef4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Effects */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 30% 60%, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 80% 40%, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90% 90%, white, rgba(0,0,0,0));
    background-size: 200px 200px;
    opacity: 0.3;
    z-index: 0;
}

.blob-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,122,51,0.4) 0%, rgba(15,23,42,0) 70%);
    z-index: 0;
    filter: blur(60px);
    animation: drift 15s infinite alternate ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

.container {
    max-width: 600px;
    width: 90%;
    position: relative;
    z-index: 10;
    padding: 2rem 0;
}

.app-header {
    text-align: center;
    margin-bottom: 3rem;
}

.university-name {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.election-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
    display: none !important;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem auto;
    box-shadow: 0 0 20px rgba(0, 122, 51, 0.5);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group select option {
    background-color: var(--bg-dark);
    color: #fff;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.25);
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 122, 51, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 51, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

.error-msg {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
    min-height: 20px;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .loader {
    display: block !important;
}

@media (max-width: 640px) {
    .election-title {
        font-size: 1.8rem;
    }
    .glass-panel {
        padding: 1.5rem;
    }
}

/* Procedures Styling */
.procedures-box {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 122, 51, 0.3);
}

.procedures-box ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    line-height: 1.6;
}

.procedures-box ol li {
    margin-bottom: 0.5rem;
}

.procedures-box ol li strong {
    color: var(--secondary-color);
}

.fee-notice {
    background: rgba(0, 122, 51, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 4px;
}

.fee-notice strong {
    color: var(--primary-light);
    display: block;
    margin-bottom: 0.5rem;
}

.fee-notice ul {
    list-style-type: none;
    margin-bottom: 0.8rem;
}

.fee-notice ul li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding: 0.3rem 0;
    color: var(--text-muted);
}

.fee-notice ul li span {
    font-weight: bold;
    color: var(--text-main);
}

.deadline-note {
    font-size: 0.9rem;
    color: var(--error-color);
    font-style: italic;
    margin-top: 0.5rem;
}

.form-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 2rem 0;
}
