* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    flex-wrap: wrap;
    background-color: #000;
    min-height: 100vh;
}

/* Left Section */
.left-section {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.left-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overlay h1 {
    color: #2D7BE5;
    margin-bottom: 10px;
}

.overlay h2 {
    margin-bottom: 15px;
}

.overlay ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Right Section */
.right-section {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: white;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
    font-weight: bold;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
}

.checkbox-container input {
    margin-right: 10px;
    margin-top: 4px;
}

.right-section button {
    background: #000;
    color: #fff;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #555;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease-in-out;
}

.right-section button:hover {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-section,
    .right-section {
        width: 100%;
    }

    .overlay {
        position: static;
        padding: 20px;
        background: #000;
    }

    .overlay ul {
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .overlay h1 {
        font-size: 22px;
    }

    .overlay h2 {
        font-size: 18px;
    }

    .right-section {
        padding: 20px;
    }

    .right-section button {
        width: 100%;
    }
}



/* Base success alert styles *//* Success alert base */
.alert-success {
    background-color: #28a745; /* Green background */
    color: #ffffff;             /* White text */
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

/* Optional icon (checkmark) */
.alert-success::before {
    content: '✔';
    font-weight: bold;
    margin-right: 10px;
    color: #ffffff;
}

/* Close (X) button */
.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #ffffff;
    cursor: pointer;
    margin-left: 15px;
}

/* Fade animation */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}
.fade-out {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
