/* ════════════════════════════════════════════════════════════
   PCP Workshop Inquiry Modal
   Palette: Gold #A87C2A · Font: Outfit (already on PG pages)
════════════════════════════════════════════════════════════ */

/* ── Overlay ─────────────────────────────────────────────── */
.pcp-wi-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 8, 0.70);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.pcp-wi-overlay.open {
    display: flex;
}

/* ── Modal box ───────────────────────────────────────────── */
.pcp-wi-modal {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 40px 32px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.24);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: pcp-wi-in 0.2s ease;
    box-sizing: border-box;
}

@keyframes pcp-wi-in {
    from { opacity: 0; transform: translateY(12px) scale(0.975); }
    to   { opacity: 1; transform: translateY(0)    scale(1);     }
}

/* ── Close button ────────────────────────────────────────── */
.pcp-wi-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    font-family: inherit;
}
.pcp-wi-close:hover {
    color: #374151;
    background: #f3f4f6;
}

/* ── Header ──────────────────────────────────────────────── */
.pcp-wi-eyebrow {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A87C2A;
    margin-bottom: 8px;
}

.pcp-wi-header h2 {
    font-size: 23px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.25;
    margin: 0 0 10px;
    font-family: 'Outfit', sans-serif;
}

.pcp-wi-header h2 span {
    color: #A87C2A;
}

.pcp-wi-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 22px;
    line-height: 1.55;
}

/* ── Form layout ─────────────────────────────────────────── */
.pcp-wi-row {
    display: grid;
    gap: 14px;
}

.pcp-wi-row-2 { grid-template-columns: 1fr 1fr; }
.pcp-wi-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Fields ──────────────────────────────────────────────── */
.pcp-wi-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.pcp-wi-field label {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
}

.pcp-wi-req {
    color: #A87C2A;
    margin-left: 1px;
}

.pcp-wi-optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 11px;
}

.pcp-wi-field input[type="text"],
.pcp-wi-field input[type="email"],
.pcp-wi-field select,
.pcp-wi-field textarea {
    padding: 9px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    font-size: 13.5px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2937;
    background: #fafafa;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.pcp-wi-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.pcp-wi-field input:focus,
.pcp-wi-field select:focus,
.pcp-wi-field textarea:focus {
    border-color: #A87C2A;
    box-shadow: 0 0 0 3px rgba(168, 124, 42, 0.13);
    background: #fff;
}

.pcp-wi-field textarea {
    resize: vertical;
    min-height: 72px;
}

/* ── Honeypot ────────────────────────────────────────────── */
/* Visually hidden but NOT display:none — bots avoid display:none */
.pcp-wi-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Consent checkbox ────────────────────────────────────── */
.pcp-wi-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 18px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.pcp-wi-consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #A87C2A;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ── Error banner ────────────────────────────────────────── */
.pcp-wi-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 13px;
    color: #b91c1c;
    margin-bottom: 14px;
    line-height: 1.45;
}

/* ── Submit button ───────────────────────────────────────── */
.pcp-wi-submit {
    width: 100%;
    padding: 13px 24px;
    background: #A87C2A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}

.pcp-wi-submit:hover:not(:disabled) {
    background: #8f6820;
}

.pcp-wi-submit:active:not(:disabled) {
    transform: scale(0.99);
}

.pcp-wi-submit:disabled {
    background: #c9a05a;
    cursor: not-allowed;
}

/* ── Success state ───────────────────────────────────────── */
.pcp-wi-success {
    text-align: center;
    padding: 20px 0 4px;
}

.pcp-wi-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #16a34a;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pcp-wi-success h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
    font-family: 'Outfit', sans-serif;
}

.pcp-wi-success p {
    font-size: 13.5px;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 540px) {
    .pcp-wi-modal {
        padding: 28px 20px 24px;
        border-radius: 12px;
    }

    .pcp-wi-row-2,
    .pcp-wi-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pcp-wi-header h2 {
        font-size: 19px;
    }
}