/* Форма заявки — стили публичного сайта */

.reqmodal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.reqmodal.is-open { opacity: 1; pointer-events: auto; }

.reqmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 27, 36, .72);
    backdrop-filter: blur(3px);
}

.reqmodal__card {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px 30px 26px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    transform: translateY(12px) scale(.98);
    transition: transform .28s ease;
}
.reqmodal.is-open .reqmodal__card { transform: none; }

.reqmodal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 26px;
    line-height: 1;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s, color .2s;
}
.reqmodal__close:hover { background: #f2f2f2; color: #131b24; }

.reqmodal__card h2 {
    margin: 0 0 6px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 500;
    color: #131b24;
}
.reqmodal__sub { margin: 0 0 20px; font-size: .95rem; color: #666; }

.reqmodal__work {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px;
    background: #f8f8f7;
    border: 1px solid #eceae6;
    border-radius: 8px;
}
.reqmodal__work img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    background: #fff;
}
.reqmodal__work strong { display: block; font-size: 1rem; color: #131b24; }
.reqmodal__work span { font-size: .9rem; color: #666; }

.rq-field { display: block; margin-bottom: 14px; }
.rq-field > span {
    display: block;
    margin-bottom: 6px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
}
.rq-field i { color: #b4532f; font-style: normal; }
.rq-field input, .rq-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e0db;
    border-radius: 7px;
    font-family: inherit;
    font-size: 1rem;
    color: #222;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.rq-field textarea { resize: vertical; min-height: 76px; }
.rq-field input:focus, .rq-field textarea:focus {
    outline: none;
    border-color: #3b5068;
    box-shadow: 0 0 0 3px rgba(59, 80, 104, .12);
}
.rq-hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; }

.reqmodal__error {
    min-height: 0;
    margin: 4px 0 10px;
    font-size: .9rem;
    color: #b3372a;
}
.reqmodal__error:not(:empty) { min-height: 20px; }

.rq-submit {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 7px;
    background: #1c2836;
    color: #fff;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}
.rq-submit:hover:not(:disabled) { background: #3b5068; }
.rq-submit:disabled { opacity: .6; cursor: default; }

.rq-note {
    margin: 12px 0 0;
    font-size: .78rem;
    line-height: 1.5;
    color: #999;
    text-align: center;
}

.reqmodal__done { display: none; text-align: center; padding: 10px 0 4px; }
.rq-done__icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #eaf4ee;
    color: #3c7a5d;
    font-size: 26px;
}
.rq-done h3 { margin: 0 0 8px; font-size: 1.3rem; color: #131b24; }
.rq-done p { margin: 0 0 18px; font-size: .98rem; color: #666; line-height: 1.6; }

@media (max-width: 560px) {
    .reqmodal { padding: 0; align-items: flex-end; }
    .reqmodal__card {
        max-width: none;
        border-radius: 14px 14px 0 0;
        max-height: 94vh;
        padding: 26px 20px 22px;
    }
}
