﻿/* Validation error styling */
/*.field-validation-error {
    color: #b94a48;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.input-validation-error {
    border-color: #b94a48 !important;
}

.alert-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.alert-message.success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.alert-message.error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}*/



/* Modal Container */
.product-notify-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 100000 !important;
}

/* Faded Overlay Background */
/*.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
}*/
/* Faded Overlay Background */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1000000 !important;
}
/* Modal Dialog Wrapper - MUST BE HIGHER THAN OVERLAY */
.modal-dialog-wrapper {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10000001 !important; /* HIGHER than overlay! */
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
}

/* Modal Content Box */
.modal-content-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 1000000 !important; /* Even higher! */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.modal-header-custom {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-title-custom {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.close-btn-custom {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn-custom:hover {
        color: #333;
    }

/* Modal Body - Two Column Layout */
.modal-body-custom {
    padding: 0;
}

.two-column-container {
    display: flex;
    min-height: 400px;
}

/* LEFT COLUMN */
.left-column {
    flex: 1;
    padding: 25px;
    border-right: 1px solid #e5e5e5;
    overflow-y: auto;
    max-height: 60vh;
}

.form-header {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f0f8ff;
    border-left: 4px solid #313895;
    border-radius: 4px;
}

    .form-header p {
        margin: 0;
        line-height: 1.6;
        color: #333;
        font-size: 14px;
    }

    .form-header strong {
        color: #313895;
    }

.left-column .form-group {
    margin-bottom: 18px;
}

/* Bootstrap Grid Support */
.left-column .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.left-column .col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 50%;
    max-width: 50%;
}

.left-column label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.left-column .required {
    color: #dc3545;
}

.left-column .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out;
}

    .left-column .form-control:focus {
        outline: none;
        border-color: #313895;
        box-shadow: 0 0 0 0.2rem rgba(74, 178, 241, 0.25);
    }

.checkbox-group {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.custom-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .custom-checkbox-wrapper input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .custom-checkbox-wrapper label {
        margin: 0;
        cursor: pointer;
        font-weight: 500;
        color: #333;
        line-height: 1.4;
    }

/* RIGHT COLUMN */
.right-column {
    width: 320px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 0;
}

.contact-info-box h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #313895;
}

.contact-section {
    margin-bottom: 20px;
}

    .contact-section h5 {
        margin: 0 0 8px 0;
        font-size: 14px;
        font-weight: 600;
        color: #313895;
        text-transform: uppercase;
    }

    .contact-section p {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        color: #555;
    }

    .contact-section a {
        color: #313895;
        text-decoration: none;
    }

        .contact-section a:hover {
            text-decoration: underline;
        }

/* Alert Message */
.alert-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
}

    .alert-message.success {
        background-color: #d4edda;
        border: 1px solid #c3e6cb;
        color: #155724;
    }

    .alert-message.error {
        background-color: #f8d7da;
        border: 1px solid #f5c6cb;
        color: #721c24;
    }

/* Modal Footer */
.modal-footer-custom {
    padding: 15px 25px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary-custom {
    background-color: #6c757d;
    color: #fff;
}

    .btn-secondary-custom:hover {
        background-color: #5a6268;
    }

.btn-primary-custom {
    background-color: #313895;
    color: #fff;
}

    .btn-primary-custom:hover {
        background-color: #3a9fd9;
    }

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Notify Link Styling */
.notify-when-available {
    color: #313895;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
}

    .notify-when-available:hover {
        text-decoration: underline;
        color: #3a9fd9;
    }

    .notify-when-available i {
        margin-right: 5px;
    }

/* Prevent body scroll when modal is open */
body.modal-open-custom {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
    .two-column-container {
        flex-direction: column;
    }

    .left-column {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        max-height: none;
    }

    .right-column {
        width: 100%;
        border-radius: 0 0 8px 8px;
    }

    .modal-dialog-wrapper {
        max-height: 95vh;
    }
}

@media (max-width: 768px) {
    .modal-dialog-wrapper {
        width: 98%;
    }

    .modal-header-custom,
    .left-column,
    .right-column,
    .modal-footer-custom {
        padding: 15px;
    }

    .modal-footer-custom {
        flex-direction: column;
    }

        .modal-footer-custom .btn {
            width: 100%;
        }
}
