/* Modal Popup */
.banner-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

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

.banner-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.banner-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1;
}

.banner-close:hover {
    color: #333;
}

/* TEXT SECTION */
.banner-text-section {
    margin-bottom: 20px;
}

.banner-text-section h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

/* IMAGE SECTION */
.banner-image {
    margin-bottom: 20px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-placeholder {
    color: #999;
    font-size: 18px;
    text-align: center;
}

/* FORM STYLING */
.banner-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: slideIn 0.3s ease;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.form-group input {
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #bbb;
}

.banner-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.banner-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.banner-submit-btn:active {
    transform: translateY(0);
}

.banner-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Message */
.form-message {
    margin-top: 10px;
    padding: 12px;
    border-radius: 6px;
    display: none;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .banner-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

    .banner-text-section h2 {
        font-size: 20px;
    }

    .banner-image {
        min-height: 180px;
    }

    .form-group input {
        padding: 12px;
        font-size: 16px;
    }

    .banner-submit-btn {
        padding: 13px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .banner-modal-content {
        width: 100%;
        margin: 0 10px;
        border-radius: 8px;
        padding: 15px;
    }

    .banner-close {
        right: 10px;
        top: 10px;
    }

    .banner-text-section h2 {
        font-size: 18px;
    }

    .banner-image {
        min-height: 150px;
    }
}
