/* ====================================
   CSS VARIABLES & GLOBAL SETTINGS
   ==================================== */

:root {
    /* Color Palette */
    --primary-blue: #5A92CB;
    --secondary-blue: #97CEEF;
    --dark-blue: #052659;
    --background: #141D3B;
    --white: #ffffff;
    --white-03: rgba(255, 255, 255, 0.03);
    --white-05: rgba(255, 255, 255, 0.05);
    --white-10: rgba(255, 255, 255, 0.1);
    --white-15: rgba(255, 255, 255, 0.15);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-80: rgba(255, 255, 255, 0.8);
    --white-90: rgba(255, 255, 255, 0.9);

    /* Animated Background */
    --node: 220, 235, 255;
    --node-size: 2px;
    --line-max-opacity: 0.35;
    --z: -10;

    /* Spacing */
    --container-padding: 20px;
    --section-gap: 50px;
    --card-padding: 40px;
    --border-radius: 20px;
    --small-radius: 15px;

    /* Typography */
    --font-family: 'Cairo', sans-serif;
    --h1-size: 2.5em;
    --h2-size: 2em;
    --h3-size: 1.5em;
    --body-size: 1.1em;
}

/* ====================================
   RESET & BASE STYLES
   ==================================== */

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

body {
    background: var(--background);
    font-family: var(--font-family);
    color: var(--white);
    direction: rtl;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* ====================================
   ANIMATED BACKGROUND
   ==================================== */

#nodes-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z);
    pointer-events: none;
    display: block;
}

/* ====================================
   LOGO STYLING - FIXED
   ==================================== */

/* Home page logo */
.logo {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: auto;
    z-index: 50;
}

/* Registration page logo */
.register-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -25px;
    width: 160px;
    height: auto;
}

/* ====================================
   BACK TO HOME BUTTON
   ==================================== */

.back-home-container {
    position: absolute;
    top: 4vw;
    left: 4vw;
    z-index: 50;
}

.back-home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--white-10);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--white-10);
    backdrop-filter: blur(10px);
}

.back-home-btn:hover {
    background-color: var(--white-15);
    transform: translateY(-1px);
    border-color: var(--secondary-blue);
}

/* ====================================
   HOME PAGE LAYOUT
   ==================================== */

.home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px var(--container-padding) 30px;
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero-section {
    text-align: center;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: var(--h1-size);
    font-weight: 700;
    color: var(--secondary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3em;
    color: var(--white-90);
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.5;
}

/* ====================================
   CARD SYSTEM
   ==================================== */

.about-section,
.goals-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-card {
    background: var(--white-03);
    backdrop-filter: blur(8px);
    border: 1px solid var(--white-05);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.about-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(151,206,239,0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.about-card h2 {
    color: var(--secondary-blue);
    font-size: var(--h2-size);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-card h3 {
    color: var(--secondary-blue);
    font-size: var(--h3-size);
    margin-bottom: 15px;
    font-weight: 600;
}

.about-card p {
    color: var(--white-90);
    line-height: 1.7;
    font-size: var(--body-size);
}

/* Vision & Mission Grid */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ====================================
   GOALS SECTION
   ==================================== */

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.goal-item {
    background: var(--white-03);
    border: 1px solid var(--white-05);
    border-radius: var(--small-radius);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.goal-item:hover {
    background: var(--white-05);
    border-color: rgba(151,206,239,0.2);
    transform: translateY(-3px);
}

.goal-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.goal-item h4 {
    color: var(--secondary-blue);
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.goal-item p {
    color: var(--white-80);
    line-height: 1.5;
    font-size: 0.95em;
}

/* ====================================
   CTA SECTION
   ==================================== */

.cta-section {
    background: linear-gradient(135deg, rgba(90,146,203,0.15), rgba(151,206,239,0.1));
    border: 1px solid rgba(151,206,239,0.2);
    border-radius: 25px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(151,206,239,0.08) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-icon {
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
    display: flex;
    justify-content: center;
}

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

.cta-section h2 {
    color: var(--secondary-blue);
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-description {
    color: var(--white-90);
    font-size: 1.2em;
    margin: 0 auto 35px;
    line-height: 1.6;
    max-width: 600px;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white-80);
    font-size: 1em;
    padding: 12px 20px;
    background: var(--white-05);
    border-radius: 30px;
    border: 1px solid var(--white-10);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--white-10);
    transform: translateY(-2px);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 20px 40px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(90,146,203,0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::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.6s ease;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(90,146,203,0.5);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* ====================================
   REGISTRATION PAGE STYLES
   ==================================== */

body.register-page {
    padding-top: 85px;
}

.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.register-form-box {
    background: var(--white-03);
    backdrop-filter: blur(8px);
    border: 1px solid var(--white-05);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    text-align: center;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.register-form-box h2 {
    color: var(--secondary-blue);
    margin-bottom: 10px;
    font-size: 1.8em;
}

.register-header-content {
    text-align: center;
    margin-bottom: 30px;
}

.register-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.form-description {
    color: var(--white-70);
    font-size: 16px;
    margin-top: 10px;
}

/* ====================================
   PROGRESS INDICATOR
   ==================================== */

.progress-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Background line */
.progress-indicator::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

/* Animated progress line */
.progress-indicator::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 60px;
    width: 0%; /* Default - will be updated by JS */
    height: 2px;
    background: linear-gradient(90deg, #4CAF50, var(--primary-blue));
    z-index: 2;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(151,206,239,0.5);
}

/* Progress states */
.progress-indicator.on-step-1::after { width: 0%; }
.progress-indicator.on-step-2::after { width: calc(50% - 40px); }
.progress-indicator.on-step-3::after { width: calc(100% - 80px); }

.progress-step {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--background);
    border: 3px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255,255,255,0.5);
    font-weight: bold;
    font-size: 16px;
}

/* Active state */
.progress-step.active .step-number {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(90,146,203,0.6);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(90,146,203,0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(90,146,203,0.8), 0 0 40px rgba(90,146,203,0.4);
    }
}

/* Completed state */
.progress-step.completed .step-number {
    border-color: #4CAF50;
    background: #4CAF50;
    color: white;
    animation: checkmark-pop 0.5s ease;
}

@keyframes checkmark-pop {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Replace number with checkmark for completed steps */
.progress-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 20px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.progress-step.completed .step-number span {
    visibility: hidden;
}

.step-label {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    max-width: 100px;
    line-height: 1.3;
    transition: all 0.3s ease;
    font-weight: 400;
}

.progress-step.active .step-label {
    color: var(--secondary-blue);
    font-weight: 600;
    transform: translateY(-2px);
}

.progress-step.completed .step-label {
    color: #4CAF50;
    font-weight: 500;
}

/* Hover effect for future steps */
.progress-step:not(.completed):not(.active):hover .step-number {
    border-color: rgba(255,255,255,0.3);
    transform: scale(1.05);
    cursor: pointer;
}

/* ====================================
   COMMITTEES INFO SECTION
   ==================================== */

.committees-info-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--white-10);
}

.committees-info-section h3 {
    color: var(--secondary-blue);
    font-size: 1.6em;
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.committees-info-section h3 svg {
    flex-shrink: 0;
}

.committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.committee-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--white-10);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.committee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(151,206,239,0.1), transparent);
    transition: left 0.6s ease;
}

.committee-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
    border-color: rgba(151,206,239,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.committee-card:hover::before {
    left: 100%;
}

.committee-card h4 {
    color: var(--secondary-blue);
    margin-bottom: 8px;
    font-size: 1.1em;
}

.committee-card p {
    color: var(--white-80);
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

/* Special styling for media committee */
.committee-parent {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.committee-parent:hover {
    border-color: rgba(151,206,239,0.3);
}

.sub-teams {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--white-10);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-team {
    background: var(--white-03);
    border: 1px solid var(--white-05);
    border-radius: 6px;
    padding: 10px;
    transition: all 0.2s ease;
}

.sub-team:hover {
    background: rgba(255,255,255,0.06);
}

.sub-team h5 {
    color: var(--secondary-blue);
    margin-bottom: 4px;
    font-size: 0.85em;
}

.sub-team p {
    font-size: 0.75em;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.4;
}

/* ====================================
   COMMITTEE ICONS
   ==================================== */

.committee-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.committee-card:hover .committee-icon {
    opacity: 1;
    transform: scale(1.1);
}

.sub-team-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    opacity: 0.7;
}

.sub-team:hover .sub-team-icon {
    opacity: 1;
    transform: scale(1.05);
}

/* ====================================
   FORM STYLES
   ==================================== */

.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: var(--white-03);
    border: 1px solid var(--white-05);
    border-radius: 12px;
}

.form-section h3 {
    color: var(--secondary-blue);
    font-size: 1.4em;
    margin-bottom: 20px;
    text-align: right;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-blue);
    font-weight: bold;
}

.register-form-box input,
.register-form-box select,
.register-form-box textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--white-05);
    border-radius: 8px;
    background-color: var(--background);
    color: var(--white);
    font-family: var(--font-family);
    box-sizing: border-box;
    text-align: right;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.register-form-box input:focus,
.register-form-box select:focus,
.register-form-box textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(90,146,203,0.2);
}

.register-form-box textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

.register-form-box select {
    cursor: pointer;
}

/* Field Error Styles */
.field-error {
    color: #EF5350;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90,146,203,0.3);
}

.cancel-btn {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 12px 25px;
    border: 1px solid var(--white-10);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
    background-color: var(--white-05);
}

/* Committee-specific questions */
#committee-specific-questions {
    transition: all 0.3s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

#committee-specific-questions.show {
    opacity: 1;
    max-height: 2000px;
}

/* Message display */
#message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* Dynamic question styles */
.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.radio-option:hover,
.checkbox-option:hover {
    background-color: var(--white-03);
}

.radio-option input,
.checkbox-option input {
    margin-left: 10px;
    margin-right: 0;
    width: auto;
    padding: 0;
}

.radio-option label,
.checkbox-option label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95em;
    color: var(--white-90);
    padding: 0;
}

.checkbox-option input:disabled + label {
    color: rgba(255,255,255,0.4);
    cursor: not-allowed;
}

.info-text {
    background: linear-gradient(135deg, rgba(90,146,203,0.1), rgba(151,206,239,0.05));
    border: 1px solid rgba(151,206,239,0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: var(--secondary-blue);
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.other-input input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--white-05);
    border-radius: 8px;
    background-color: var(--background);
    color: var(--white);
    font-family: var(--font-family);
    text-align: right;
    margin-top: 5px;
}

.other-input input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(90,146,203,0.2);
}

/* File input styling */
input[type="file"] {
    background: var(--white-05) !important;
    border: 1px dashed var(--white-10) !important;
    padding: 15px !important;
    text-align: center !important;
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
}

/* ====================================
   REGISTRATION PAGE HEADER
   ==================================== */

.register-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(20, 29, 59, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--white-05);
    z-index: 100;
    height: 70px;
}

.header-spacer {
    width: 120px;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .home-container {
        padding: 100px 60px 40px;
        gap: 60px;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .about-card {
        padding: 50px;
    }

    .cta-section {
        padding: 80px 60px;
    }

    .logo {
        width: 340px;
        top: -70px;
    }

    .register-logo {
        width: 180px;
        top: -60px;
    }
}

/* Desktop (769px to 1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
    .logo {
        width: 280px;
        top: -60px;
    }

    .register-logo {
        width: 160px;
        top: -25px;
    }

    .progress-indicator {
        max-width: 600px;
        margin: 50px auto;
        padding: 0 50px;
    }

    .progress-indicator::before {
        left: 85px;
        right: 85px;
    }

    .progress-indicator::after {
        left: 85px;
    }

    .progress-indicator.on-step-2::after { width: calc(50% - 42px); }
    .progress-indicator.on-step-3::after { width: calc(100% - 85px); }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .step-label {
        font-size: 14px;
        max-width: 120px;
    }
}

/* Tablet (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .logo {
        width: 200px;
        top: -50px;
    }

    .register-logo {
        width: 120px;
        top: -25px;
    }

    .home-container {
        padding: 80px 15px 20px;
        gap: 40px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-card {
        padding: 30px;
    }

    .goals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-section {
        padding: 40px 25px;
    }

    .cta-section h2 {
        font-size: 1.8em;
    }

    .cta-features {
        gap: 15px;
    }

    .cta-button {
        padding: 16px 32px;
        font-size: 1.1em;
    }

    .committees-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .committee-card {
        padding: 15px;
    }

    .register-form-box {
        padding: 30px 25px;
        margin: 0 10px;
    }

    .form-section {
        padding: 20px;
        margin-bottom: 25px;
    }

    .form-section h3 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .register-header {
        padding: 12px 15px;
        height: 60px;
    }

    .back-home-btn {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
    }

    .back-home-btn svg {
        width: 16px;
        height: 16px;
    }

    body.register-page {
        padding-top: 75px;
    }

    .form-description {
        font-size: 14px;
    }

    .progress-indicator {
        margin: 35px auto;
        max-width: 450px;
        padding: 0 35px;
    }

    .progress-indicator::before {
        left: 60px;
        right: 60px;
    }

    .progress-indicator::after {
        left: 60px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .step-label {
        font-size: 12px;
        max-width: 90px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .logo {
        width: 190px;
        top: -40px;
    }

    .register-logo {
        width: 130px;
        top: -35px;
    }

    .back-home-container {
        top: 3vw;
        left: 3vw;
    }

    .back-home-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .home-container {
        padding: 70px 10px 15px;
        gap: 30px;
    }

    .hero-section {
        padding: 30px 0;
    }

    .hero-content h1 {
        font-size: 1.7em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 0 10px;
    }

    .about-card {
        padding: 20px 15px;
        margin: 0;
    }

    .about-card h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .about-card h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .about-card p {
        font-size: 0.9em;
        line-height: 1.5;
    }

    .cta-section {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .cta-section h2 {
        font-size: 1.5em;
    }

    .cta-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 30px;
    }

    .feature-item {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 28px;
        font-size: 1em;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .committees-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .committee-card {
        padding: 15px;
    }

    .register-form-box {
        max-height: 95vh;
        padding: 20px 15px;
        margin: 0 5px;
        border-radius: 12px;
    }

    .register-form-box h2 {
        font-size: 1.5em;
    }

    .form-description {
        font-size: 0.9em;
        margin-bottom: 25px;
    }

    .form-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .form-section h3 {
        font-size: 1.1em;
        margin-bottom: 12px;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .submit-btn,
    .cancel-btn {
        width: 100%;
        max-width: 200px;
        padding: 10px 20px;
    }

    .register-form-box textarea {
        min-height: 70px;
    }

    .progress-indicator {
        margin: 30px auto;
        padding: 0 15px;
        max-width: 350px;
    }

    .progress-indicator::before {
        left: 40px;
        right: 40px;
        top: 18px;
    }

    .progress-indicator::after {
        left: 40px;
        top: 18px;
    }

    .progress-indicator.on-step-2::after { width: calc(50% - 30px); }
    .progress-indicator.on-step-3::after { width: calc(100% - 60px); }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-width: 2px;
    }

    .progress-step.completed .step-number::after {
        font-size: 16px;
    }

    .step-label {
        font-size: 11px;
        max-width: 80px;
    }

    .progress-step.active .step-number {
        animation: pulse-glow-mobile 2s infinite;
    }

    @keyframes pulse-glow-mobile {
        0%, 100% {
            box-shadow: 0 0 15px rgba(90,146,203,0.6);
        }
        50% {
            box-shadow: 0 0 20px rgba(90,146,203,0.8);
        }
    }

    .radio-option,
    .checkbox-option {
        flex-direction: row;
        align-items: flex-start;
        padding: 6px;
    }

    .radio-option input,
    .checkbox-option input {
        margin-left: 8px;
        margin-top: 2px;
    }

    .radio-option label,
    .checkbox-option label {
        font-size: 0.9em;
        line-height: 1.4;
    }

    .register-header {
        padding: 10px 12px;
        height: 55px;
    }

    .back-home-btn span {
        display: none;
    }

    .back-home-btn {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }

    body.register-page {
        padding-top: 70px;
    }

    .form-description {
        font-size: 13px;
    }
}


/* ====================================
   SUCCESS MESSAGE OVERLAY
   Add this to your style.css file
   ==================================== */

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 29, 59, 0.98);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.success-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-modal {
    background: linear-gradient(135deg, rgba(90,146,203,0.15), rgba(151,206,239,0.08));
    border: 2px solid rgba(151,206,239,0.3);
    border-radius: 24px;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.5s ease;
    box-shadow: 0 20px 60px rgba(90,146,203,0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Success Icon Animation */
.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    position: relative;
    animation: scaleIn 0.6s ease;
    box-shadow: 0 10px 30px rgba(76,175,80,0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-180deg);
    }
    to {
        transform: scale(1) rotate(0);
    }
}

.checkmark-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 4;
    fill: none;
    animation: drawCheck 0.8s ease 0.3s forwards;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--secondary-blue);
    animation: confetti-fall 3s ease-out infinite;
}

.confetti:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    background: var(--primary-blue);
    width: 8px;
    height: 8px;
}

.confetti:nth-child(2) {
    left: 30%;
    animation-delay: 0.3s;
    background: #4CAF50;
    width: 12px;
    height: 12px;
}

.confetti:nth-child(3) {
    left: 50%;
    animation-delay: 0.6s;
    background: var(--secondary-blue);
}

.confetti:nth-child(4) {
    left: 70%;
    animation-delay: 0.9s;
    background: #FFD700;
    width: 6px;
    height: 6px;
}

.confetti:nth-child(5) {
    left: 90%;
    animation-delay: 1.2s;
    background: var(--primary-blue);
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.success-title {
    color: #4CAF50;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.success-message {
    color: rgba(255,255,255,0.9);
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.success-message #applicantName {
    color: var(--secondary-blue);
    font-weight: 600;
}

.success-sub-message {
    color: rgba(255,255,255,0.7);
    font-size: 1em;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reference Number Box */
.reference-number {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    animation: fadeInUp 0.8s ease 1s both;
}

.reference-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.reference-code {
    color: var(--secondary-blue);
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Success Action Buttons */
.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 1.1s both;
}

.btn-home {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(90,146,203,0.4);
}

.btn-close {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    padding: 12px 30px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.btn-close:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Responsive Success Modal */
@media (max-width: 768px) {
    .success-modal {
        padding: 30px 20px;
        width: 95%;
    }

    .success-title {
        font-size: 2em;
    }

    .success-message {
        font-size: 1.1em;
    }

    .success-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-home, .btn-close {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .success-modal {
        padding: 25px 15px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-checkmark {
        width: 80px;
        height: 80px;
    }

    .success-title {
        font-size: 1.8em;
    }

    .reference-code {
        font-size: 1.2em;
    }
}

/* ====================================
   FOOTER STYLES
   ==================================== */

.footer {
    background: linear-gradient(135deg, rgba(5,38,89,0.3), rgba(20,29,59,0.5));
    border-top: 1px solid rgba(151,206,239,0.2);
    margin-top: 80px;
    padding: 40px 20px 30px;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.footer-section {
    text-align: center;
}

.footer-logo {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-description {
    color: var(--secondary-blue);
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 0.95em;
    line-height: 1.5;
}

.footer-title {
    color: var(--secondary-blue);
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 250px;
}

.footer-link:hover {
    color: var(--secondary-blue);
    background: rgba(255,255,255,0.06);
    border-color: rgba(151,206,239,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90,146,203,0.2);
}

.footer-link svg {
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(90,146,203,0.4);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: rgba(255,255,255,0.8);
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    font-size: 0.9em;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 30px 15px 20px;
        margin-top: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-logo {
        width: 120px;
    }

    .footer-link {
        min-width: 220px;
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        width: 100px;
    }

    .footer-description {
        font-size: 1em;
    }

    .footer-title {
        font-size: 1.2em;
    }

    .footer-link {
        min-width: 200px;
    }
}

/* ====================================
   SUCCESS MESSAGE OVERLAY
   ==================================== */

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 29, 59, 0.98);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.success-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-modal {
    background: linear-gradient(135deg, rgba(90,146,203,0.15), rgba(151,206,239,0.08));
    border: 2px solid rgba(151,206,239,0.3);
    border-radius: 24px;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.5s ease;
    box-shadow: 0 20px 60px rgba(90,146,203,0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Success Icon Animation */
.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    position: relative;
    animation: scaleIn 0.6s ease;
    box-shadow: 0 10px 30px rgba(76,175,80,0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-180deg);
    }
    to {
        transform: scale(1) rotate(0);
    }
}

.checkmark-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 4;
    fill: none;
    animation: drawCheck 0.8s ease 0.3s forwards;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--secondary-blue);
    animation: confetti-fall 3s ease-out infinite;
}

.confetti:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    background: var(--primary-blue);
    width: 8px;
    height: 8px;
}

.confetti:nth-child(2) {
    left: 30%;
    animation-delay: 0.3s;
    background: #4CAF50;
    width: 12px;
    height: 12px;
}

.confetti:nth-child(3) {
    left: 50%;
    animation-delay: 0.6s;
    background: var(--secondary-blue);
}

.confetti:nth-child(4) {
    left: 70%;
    animation-delay: 0.9s;
    background: #FFD700;
    width: 6px;
    height: 6px;
}

.confetti:nth-child(5) {
    left: 90%;
    animation-delay: 1.2s;
    background: var(--primary-blue);
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.success-title {
    color: #4CAF50;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.success-message {
    color: rgba(255,255,255,0.9);
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.success-message #applicantName {
    color: var(--secondary-blue);
    font-weight: 600;
}

.success-sub-message {
    color: rgba(255,255,255,0.7);
    font-size: 1em;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reference Number Box */
.reference-number {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    animation: fadeInUp 0.8s ease 1s both;
}

.reference-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.reference-code {
    color: var(--secondary-blue);
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Success Action Buttons */
.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 1.1s both;
}

.btn-home {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(90,146,203,0.4);
}

.btn-close {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    padding: 12px 30px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.btn-close:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Responsive Success Modal */
@media (max-width: 768px) {
    .success-modal {
        padding: 30px 20px;
        width: 95%;
    }

    .success-title {
        font-size: 2em;
    }

    .success-message {
        font-size: 1.1em;
    }

    .success-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-home, .btn-close {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .success-modal {
        padding: 25px 15px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-checkmark {
        width: 80px;
        height: 80px;
    }

    .success-title {
        font-size: 1.8em;
    }

    .reference-code {
        font-size: 1.2em;
    }
}