/* Price Inquiry Form — style.css */

/* ── Кнопка на сторінці товару ─────────────────────────── */
.pi-inquiry-wrap {
    margin: 16px 0;
}

.pi-open-modal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #c8a96e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 13px 28px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(200,169,110,0.25);
}

.pi-open-modal:hover {
    background: #b8943a;
    box-shadow: 0 4px 18px rgba(200,169,110,0.35);
    transform: translateY(-1px);
}

.pi-open-modal:active { transform: scale(0.97); }

.pi-open-modal .lnr {
    font-size: 1.1em;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.pi-modal-title .lnr {
    font-size: 1.15em;
    color: #c8a96e;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.pi-modal-close .lnr {
    font-size: 1rem;
    vertical-align: middle;
}



/* ── Overlay ────────────────────────────────────────────── */
.pi-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 10, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pi-modal-overlay.pi-active {
    display: flex;
    animation: pi-fade-in 0.22s ease;
}

@keyframes pi-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Модальне вікно ─────────────────────────────────────── */
.pi-modal {
    background: #fff;
    border-radius: 14px;
    padding: 36px 40px 32px;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    animation: pi-slide-up 0.25s cubic-bezier(.22,.68,0,1.2);
}

@keyframes pi-slide-up {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.pi-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.7rem;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.pi-modal-close:hover { color: #333; background: #f0f0f0; }

.pi-modal-title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c1e0f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pi-modal-subtitle {
    margin: 0 0 22px;
    font-size: 0.88rem;
    color: #777;
}

/* ── Поля форми ─────────────────────────────────────────── */
.pi-field { margin-bottom: 14px; }

.pi-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a3728;
    margin-bottom: 5px;
}

.pi-req { color: #c0392b; }

.pi-form input[type="text"],
.pi-form input[type="tel"],
.pi-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 7px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
	line-height:1.4;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.pi-form input:focus,
.pi-form textarea:focus {
    border-color: #c8a96e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,169,110,0.18);
}

.pi-form textarea { resize: vertical; min-height: 80px; }

/* ── Кнопка відправки ───────────────────────────────────── */
.pi-submit {
    display: block;
    width: 100%;
    background: #c8a96e;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 13px 28px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.1s;
    margin-top: 6px;
}

.pi-submit:hover  { background: #b8943a; }
.pi-submit:active { transform: scale(0.98); }
.pi-submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Відповідь ──────────────────────────────────────────── */
.pi-response {
    margin-top: 12px;
    font-size: 0.88rem;
    border-radius: 6px;
}

.pi-response.pi-success {
    background: #eaf7ee;
    border: 1px solid #7bc67e;
    color: #2d6e35;
    padding: 11px 14px;
}

.pi-response.pi-error {
    background: #fdf0ef;
    border: 1px solid #e08080;
    color: #8b2020;
    padding: 11px 14px;
}

/* ── Мобільні ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .pi-modal { padding: 28px 20px 24px; border-radius: 10px; }
}
