/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: white;
    background: linear-gradient(135deg, #1e3c72, #2a5298, #377939, #333, #FFA500);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px;
}
.hidden {
    display: none;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Top Menu Bar */
.top-menu {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-container h1 {
    margin: 0;
    font-size: 1.8em;
    color: #FFA500;
}

.menu-items {
    display: flex;
    gap: 20px;
    margin-right: 40px;
}

.menu-item {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Form Container */
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    margin: 40px auto;
}

.feature-card h2 {
    margin-bottom: 25px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.8rem;
}

/* Form Elements */
label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    text-align: left;
    color: white;
    font-size: 1rem;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.3);
}

/* Email input specific styling */
input[type="email"] {
    background-position: right 10px center;
    background-repeat: no-repeat;
    padding-right: 35px;
}

input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff4444;
}

input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #4BB543;
}

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

/* hCaptcha Container */
.h-captcha {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

/* Submit Button */
button[type="submit"] {
    background-color: #5865F2;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #4752C4;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Success Message */
#success-message {
    color: #4BB543;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    font-size: 1.1rem;
    display: none;
}

#success-message.hidden {
    display: none;
}

#success-message:not(.hidden) {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #ff4444;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff0000;
}

#cooldown-message {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    color: white;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer h2 {
    margin: 0 0 10px;
    font-size: 1.8em;
    color: #FFA500;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: #FFA500;
}

.footer p {
    margin: 10px 0 0;
    font-size: 0.9em;
    color: #ccc;
}

/* Redirect Container */
.container-pa {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .top-menu {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .menu-items {
        margin: 15px 0 0 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-card {
        margin: 20px auto;
        padding: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 100px;
    }

    .feature-card {
        width: 95%;
        padding: 15px;
    }

    input, textarea, select {
        padding: 10px;
    }
}

/* Success Message Fixes */
#success-message {
    color: #4BB543;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    font-size: 1.1rem;
    display: none; /* Start hidden */
    opacity: 0;
    transition: opacity 0.5s ease;
}

#success-message.show {
    display: block;
    opacity: 1;
}

/* Form Error States */
input:invalid, textarea:invalid {
    border-color: #ff4444;
}

input:valid, textarea:valid {
    border-color: #4BB543;
}

/* Submit Button Loading State */
button[type="submit"].loading {
    position: relative;
    pointer-events: none;
}

button[type="submit"].loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Centered Feature Card */
.container-paa {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px); /* Frosted glass effect */
    animation: fadeIn 1s ease-in-out;
    width: 350px; /* Keeps it a good size */
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Logo Styling */
.logo-1 {
    width: 80px; /* Small logo */
    height: auto;
    margin-bottom: 15px;
}

/* Text Styling */
.container-paa h6 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color:white;
  }
  
/* Loading GIF */
.loading-gif {
    width: 80px; /* Smaller but still visible */
    height: auto;
    margin-top: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}