/* ================================================================
   CONTACT MODAL
   ================================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: 10px;
    padding: 36px 40px;
    width: 100%;
    max-width: 520px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(16px);
    transition: transform 0.22s ease;
}

.modal-overlay.is-open .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
}

.modal-close:hover {
    color: #222;
}

.modal h2 {
    font-size: 1.4rem;
    margin-bottom: 22px;
    padding-right: 24px;
}

.modal-row {
    display: flex;
    gap: 14px;
}

.modal-row .modal-field {
    flex: 1;
}

.modal-field {
    margin-bottom: 14px;
}

.modal-field label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 5px;
}

.modal-field input,
.modal-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.97rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

.modal-field input:focus,
.modal-field textarea:focus {
    outline: none;
    border-color: #ff3b3b;
}

.modal-field textarea {
    height: 100px;
    resize: vertical;
}

.modal-submit {
    width: 100%;
    padding: 13px;
    background: #ff3b3b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.15s;
}

.modal-submit:hover {
    background: #d42f2f;
}

.modal-submit:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}

.modal-label-hint {
    font-weight: 400;
    color: #888;
    font-size: 0.82rem;
}

.modal-field input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
}

.modal-field input[type="file"]:hover {
    border-color: #ff3b3b;
    background: #fff5f5;
}

.modal-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.92rem;
    text-align: center;
    display: none;
}

.modal-msg.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.modal-msg.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}


/* MOBILE */

@media (max-width: 600px) {
    .modal {
        padding: 28px 20px;
        margin: 0 12px;
    }

    .modal-row {
        flex-direction: column;
        gap: 0;
    }
}
