/*
 * Pop-up forms on the public site, 2026-10-15: request a document, register
 * interest, follow a bid, ask a question.
 *
 * The same look as the newer forms (portal sign-in, contact): rounded card,
 * bold labels, rounded fields with an orange focus ring, rounded buttons.
 * The pop-ups are opened by openModalRemoteContent() into #ajax-modal, which
 * the public layout carries on every page; every rule is scoped to it, and
 * the back office has its own layout and never loads this file.
 */

#ajax-modal .modal-dialog.modal-lg {
    max-width: 560px;
}

#ajax-modal .modal-content {
    border: 1px solid #E7D9C5;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(62, 49, 41, .22);
    overflow: hidden;
}

#ajax-modal .modal-header {
    align-items: center;
    padding: 20px 28px 16px;
    border-bottom: 1px solid #F0E6DC;
    background: #FFF8F2;
}

#ajax-modal .modal-title {
    font-family: 'Montserrat', 'Avenir', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #3E3A36;
}

#ajax-modal .modal-header .close {
    width: 34px;
    height: 34px;
    margin: -4px -8px -4px auto;
    padding: 0;
    border-radius: 50%;
    opacity: .7;
    font-size: 1.5rem;
    line-height: 1;
    color: #3E3A36;
    transition: background-color .15s ease, opacity .15s ease;
}

#ajax-modal .modal-header .close:hover,
#ajax-modal .modal-header .close:focus {
    background: #F3E7DB;
    opacity: 1;
}

#ajax-modal .modal-body {
    padding: 24px 28px 28px;
    color: #2C2A27;
}

#ajax-modal .modal-body p.small {
    font-size: .9rem;
    line-height: 1.55;
    color: #5D554D;
}

#ajax-modal .modal-body .alert {
    border-radius: 10px;
    font-size: .9rem;
}

#ajax-modal .form-group {
    margin-bottom: 16px;
}

#ajax-modal label,
#ajax-modal .form-label {
    display: block;
    margin: 0 0 6px;
    font-family: 'Montserrat', 'Avenir', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    color: #3E3A36;
}

#ajax-modal .form-control {
    height: auto;
    padding: 11px 14px;
    border: 1.5px solid #E7D9C5;
    border-radius: 9px;
    font-size: .92rem;
    color: #2C2A27;
    background: #fff;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#ajax-modal textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

#ajax-modal .form-control:focus {
    border-color: #EF7A18;
    box-shadow: 0 0 0 3px rgba(239, 122, 24, .15);
    outline: 0;
}

#ajax-modal .form-control::placeholder {
    color: #b3a999;
}

#ajax-modal .modal-body .btn {
    border-radius: 9px;
    padding: 11px 22px;
    font-weight: 700;
    text-transform: none;
}

#ajax-modal .modal-body form .btn[type="submit"] {
    width: 100%;
    margin-top: 4px;
}

#ajax-modal .modal-body .alert-info {
    background: #FFF6EE;
    border-color: #F3DDC9;
    color: #5D4A3B;
}

@media (max-width: 575.98px) {
    #ajax-modal .modal-header {
        padding: 16px 18px 12px;
    }

    #ajax-modal .modal-body {
        padding: 18px 18px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ajax-modal .form-control,
    #ajax-modal .modal-header .close {
        transition: none;
    }
}
