/* General Page Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Registration Container */
.registration-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
    background: linear-gradient(to bottom right, #002147, #004080);
}

/* Form Styling */
.form-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 750px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

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

/* Form Rows & Columns */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-column {
    flex: 1;
    min-width: 250px;
}

/* Headings */
h1 {
    font-size: 2.2em;
    font-family: 'Lobster', cursive;
    color: #002147;
    margin-bottom: 20px;
}

/* Form Labels */
label {
    display: block;
    font-weight: bold;
    margin: 10px 0 5px;
    color: #333;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

/* Focus Effect */
input:focus {
    box-shadow: 0 0 8px rgba(0, 121, 191, 0.5);
    outline: none;
}

/* Submit Button */
button[type="submit"] {
    background-color: #ff8c00;
    color: #fff;
    padding: 12px;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 20px;
}

button:hover {
    background-color: #ff7b00;
    transform: translateY(-3px);
}

/* Flash Messages */
.flash-messages {
    text-align: center;
    margin-bottom: 15px;
}

.flash-success, .flash-danger {
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.flash-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: green;
}

.flash-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: red;
}

/* Close Button for Flash Messages */
.close-btn {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    padding: 0 10px;
}

/* Success Popup */
#success-popup {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 999;
}

#success-popup p {
    font-size: 1.2em;
    color: green;
}

#success-popup button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#success-popup button:hover {
    background: #0056b3;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .form-container {
        width: 90%;
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    button {
        font-size: 1em;
    }
}
