/* =====================================================
   FormPress — Frontend Styles
   ===================================================== */

/* ── Button ── */
.formpress-wrap { display: inline-block; }

.formpress-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    cursor: pointer;
    transition: filter .18s, transform .12s;
    line-height: 1;
    font-family: inherit;
}
.formpress-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.formpress-btn:active { transform: translateY(0); }

/* ── Overlay ── */
.fp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}
.fp-overlay.fp-open { display: flex; }

/* ── Popup ── */
.fp-popup {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    animation: fpSlideUp .22s ease;
}
@keyframes fpSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ── Close ── */
.fp-close {
    position: absolute;
    top: 14px; right: 16px;
    width: 30px; height: 30px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    color: #6b7280;
    transition: background .15s, color .15s;
    padding: 0;
}
.fp-close:hover { background: #e5e7eb; color: #111; }

/* ── Header ── */
.fp-header { margin-bottom: 24px; }
.fp-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}
.fp-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ── Fields ── */
.fp-field { margin-bottom: 18px; }
.fp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.fp-req { color: #ef4444; }
.fp-field input[type="text"],
.fp-field input[type="tel"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    color: #111827;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    font-family: inherit;
}
.fp-field input:focus {
    outline: none;
    border-color: #6c47ff;
    box-shadow: 0 0 0 3px rgba(108,71,255,.18);
}
.fp-field input.fp-invalid { border-color: #ef4444; }

/* ── Checkbox ── */
.fp-field--check { margin-bottom: 24px; }
.fp-check-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    user-select: none;
}
.fp-check-label input[type="checkbox"] { display: none; }
.fp-check-box {
    width: 20px; height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    flex-shrink: 0;
    background: #fff;
    position: relative;
    transition: border-color .15s, background .15s;
}
.fp-check-label input:checked + .fp-check-box {
    background: #6c47ff;
    border-color: #6c47ff;
}
.fp-check-label input:checked + .fp-check-box::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L4.5 8L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── Submit ── */
.fp-submit {
    width: 100%;
    padding: 13px;
    background: #6c47ff;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
    font-family: inherit;
}
.fp-submit:hover { background: #5535e0; }
.fp-submit:active { transform: scale(.98); }
.fp-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── Success ── */
.fp-success {
    text-align: center;
    padding: 20px 0 8px;
    animation: fpFadeIn .3s ease;
}
@keyframes fpFadeIn { from { opacity: 0; } to { opacity: 1; } }
.fp-success-icon {
    width: 56px; height: 56px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 50%;
    font-size: 26px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.fp-success p {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .fp-popup { padding: 28px 20px 24px; }
    .fp-header h3 { font-size: 19px; }
}
