/* =============================================================
   Minty Form Popup – Styles
   Mintfull Agency – https://mintfull.agency/
   ============================================================= */

/* ── Trigger button ──────────────────────────────────────────── */
.minty-fp-open-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #1a5fb4;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color .2s ease;
}
.minty-fp-open-btn:hover,
.minty-fp-open-btn:focus-visible {
    background-color: #14499a;
    outline: 2px solid #14499a;
    outline-offset: 2px;
}

/* ── Overlay ─────────────────────────────────────────────────── */
.minty-fp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    box-sizing: border-box;
}
.minty-fp-overlay[hidden] {
    display: none;
}

/* ── Modal container ─────────────────────────────────────────── */
.minty-fp-modal {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .22);
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* ── Header ──────────────────────────────────────────────────── */
.minty-fp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 0;
}
.minty-fp-title {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    color: #444;
    flex: 1;
}

/* ── Close button ────────────────────────────────────────────── */
.minty-fp-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid #aaa;
    border-radius: 3px;
    background: transparent;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background-color .15s ease, color .15s ease;
}
.minty-fp-close:hover,
.minty-fp-close:focus-visible {
    background-color: #f0f0f0;
    color: #111;
    outline: 2px solid #1a5fb4;
    outline-offset: 2px;
}

/* ── Divider ─────────────────────────────────────────────────── */
.minty-fp-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 18px 0 0;
}

/* ── Form ────────────────────────────────────────────────────── */
.minty-fp-form {
    padding: 16px 22px 0;
}

/* ── Notice (success / error) ────────────────────────────────── */
.minty-fp-notice {
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 14px;
}
.minty-fp-notice.is-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}
.minty-fp-notice.is-error {
    background: #fdecea;
    border: 1px solid #ef9a9a;
    color: #b71c1c;
}

/* ── Field ───────────────────────────────────────────────────── */
.minty-fp-field {
    margin-bottom: 14px;
}
.minty-fp-field label {
    display: block;
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
    font-weight: 400;
}
.minty-fp-req {
    color: #c0392b;
    margin-left: 2px;
}
.minty-fp-field input[type="text"],
.minty-fp-field input[type="email"],
.minty-fp-field input[type="tel"],
.minty-fp-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #bfc8d6;
    border-radius: 3px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
    font-family: inherit;
    line-height: 1.4;
}
.minty-fp-field input:focus,
.minty-fp-field textarea:focus {
    outline: none;
    border-color: #1a5fb4;
    box-shadow: 0 0 0 3px rgba(26, 95, 180, .15);
}
.minty-fp-field input.is-invalid,
.minty-fp-field textarea.is-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}
.minty-fp-field textarea {
    resize: vertical;
    min-height: 110px;
}

/* ── Submit row ──────────────────────────────────────────────── */
.minty-fp-submit-row {
    padding: 4px 0 20px;
}
.minty-fp-submit-btn {
    display: inline-block;
    padding: 11px 32px;
    background-color: #1a5fb4;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color .2s ease;
}
.minty-fp-submit-btn:hover,
.minty-fp-submit-btn:focus-visible {
    background-color: #14499a;
    outline: 2px solid #14499a;
    outline-offset: 2px;
}
.minty-fp-submit-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ── Footer ──────────────────────────────────────────────────── */
.minty-fp-footer {
    padding: 14px 22px 18px;
}
.minty-fp-footer p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.55;
}
.minty-fp-footer a {
    color: #1a5fb4;
    text-decoration: none;
}
.minty-fp-footer a:hover {
    text-decoration: underline;
}

/* ── Animation ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .minty-fp-overlay:not([hidden]) {
        animation: mintyFadeIn .18s ease;
    }
    .minty-fp-overlay:not([hidden]) .minty-fp-modal {
        animation: mintySlideUp .22s ease;
    }
}
@keyframes mintyFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes mintySlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 540px) {
    .minty-fp-title { font-size: 18px; }
    .minty-fp-header,
    .minty-fp-form,
    .minty-fp-footer { padding-left: 16px; padding-right: 16px; }
}
