/* ==========================================================================
   Brand Modal Overlay & Container Layouts
   ========================================================================== */
.brand-trigger-btn {
    background-color: #0a2540;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* .brand-trigger-btn:hover {
    background-color: #11365a;
} */

.brand-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* background-color: rgba(10, 37, 64, 0.6); */
    backdrop-filter: blur(4px);
}

.brand-modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #0a2540;
    width: 90%;
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    box-sizing: border-box;
}

.brand-modal-content:focus {
    outline: none;
}

/* ==========================================================================
   Interactive Elements & Accessibility Focus
   ========================================================================== */
button.brand-modal-close {
    background: none;
    border: none;
    padding: 5px;
    color: #0a2540;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

button.brand-modal-close:hover,
button.brand-modal-close:focus {
    color: #ef4444;
    outline: 2px solid #0a2540;
    outline-offset: 2px;
}

.brand-trigger-btn:focus,
.brand-submit-btn:focus,
.brand-form-group input:focus {
    outline: 3px solid #0a2540;
    outline-offset: 2px;
}

/* ==========================================================================
   Form Layouts & Validation States
   ========================================================================== */
.brand-modal-title {
    color: #0a2540;
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 24px;
}

.brand-error-summary {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
}

.brand-error-summary ul {
    margin: 0;
    padding-left: 20px;
}

.brand-form-group {
    margin-bottom: 20px;
}

.brand-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0a2540;
}

.brand-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.brand-form-group input.field-error {
    border-color: #ef4444;
    outline: 2px solid #ef4444;
}

.brand-submit-btn {
    width: 100%;
    background-color: #0a2540;
    color: #ffffff;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.brand-submit-btn:hover {
    background-color: #11365a;
}

.brand-submit-btn:disabled {
    background-color: #6b7280;
    cursor: not-allowed;
}

.required {
    color: #ef4444;
    margin-left: 2px;
}

/* Honeypot Anti-Spam Hidden Space */
.brand-form-honeypot {
    display: none !important;
    visibility: hidden !important;
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media screen and (max-width: 768px) {
    .brand-modal-content {
        margin: 15% auto;
        padding: 24px;
        width: 85%;
    }
}

@media screen and (max-width: 480px) {
    .brand-modal-content {
        margin: 20px auto;
        padding: 20px;
        width: 92%;
    }

    .brand-modal-title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .brand-form-group {
        margin-bottom: 16px;
    }

    .brand-form-group input {
        padding: 12px 10px;
        font-size: 16px; /* Prevents auto-zoom on iOS */
    }

    button.brand-modal-close {
        top: 10px;
        right: 15px;
        font-size: 32px;
        padding: 10px;
    }
}

@media screen and (max-height: 600px) {
    .brand-modal-content {
        margin: 10px auto;
        padding: 15px 20px;
    }
    
    .brand-modal-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .brand-form-group {
        margin-bottom: 10px;
    }
}
