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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #7daedb, #dbe6f2);
    overflow-x: hidden;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px; 
}

.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 100% !important; 
    margin: 0; 
    padding: 0 40px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #1c3d5a;
    text-decoration: none;
    animation: none;
    margin-bottom: 0;
    height: auto;
    z-index: 1001;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #1c3d5a;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1c3d5a;
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    width: auto;
}

.btn-secondary {
    color: #1c3d5a;
    background: transparent;
}

.btn-secondary:hover {
    background-color: #f0f4f8;
}

.btn-primary {
    background-color: #1c3d5a;
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
    background-color: #16304a;
}

.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
}

.form-container {
    max-width: 600px;
    width: 100%;
    animation: fadeIn 2s ease-in-out forwards;
    opacity: 0;
    text-align: center;
}

.logo-img {
    height: 180px;
    margin-bottom: 20px;
    border-radius: 50%;
    animation: slideDown 1.5s ease-out forwards;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #0077B5, #E1306C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 2s ease forwards;
}

.tagline {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #1b2c75;
    font-size: 2rem;
    animation: fadeInUp 2.5s ease forwards;
}

p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    animation: fadeInUp 2.8s ease forwards;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.form-group input {
    width: 70%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    background-color: white;
}

.form-group input:focus {
    border-color: #0077B5;
}

#submit-btn {
    padding: 12px 40px;
    font-size: 1rem;
    background-color: #0077B5;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

#submit-btn:hover {
    background-color: #005f8d;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid #0077B5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    display: none;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert.success {
    background: linear-gradient(135deg, #a6dcef, #daf2fa);
    color: #1c5d3c;
}

.alert.error {
    background: linear-gradient(135deg, #e6b6b8, #f6d3d4);
    color: #771818;
}

.main-footer {
    width: 100%;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    color: #777;
    font-size: 14px;
    background-color: #fff;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-container p {
    font-size: 14px;
    margin-bottom: 0;
    margin-top: 0;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #19436B;
    transition: color 0.3s ease;
    display: flex;
}

.social-links a:hover {
    color: #F9B253;
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

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

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .header-container {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-wrapper.active {
        transform: translateY(0); 
    }

    .main-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .header-buttons {
        flex-direction: column;
        margin-top: 20px;
        width: 100%;
        padding: 0 20px;
    }

    .header-buttons .btn {
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }
    
    .form-group input {
        width: 90%;
        max-width: 400px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 90px;
    }
    
    .logo-img {
        height: 130px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.90rem;
    }

    .form-group input {
        width: 100%; 
    }
}