/* Site Forms — frontend styles
   Brand-aligned with the Site Fitness theme:
   #E84393 (dance) · #40B590 (yoga) · Inter / Playfair */

.pf-form {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: #2C3A47;
    font-size: 15px;
    line-height: 1.55;
}
.pf-form .pf-intro {
    margin-bottom: 1.25rem;
    color: #5b6573;
    font-size: 15px;
}
.pf-form .pf-intro p { margin: 0 0 0.5rem; }

.pf-status {
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.pf-status.pf-status-info    { background: #e7f3fe; color: #0b5394; border: 1px solid #b6dafc; }
.pf-status.pf-status-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.pf-status.pf-status-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.pf-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.25rem;
}
.pf-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}
.pf-w-full { grid-column: 1 / -1; }
.pf-w-half { grid-column: span 1; }
@media (max-width: 600px) {
    .pf-fields { grid-template-columns: 1fr; }
    .pf-w-half { grid-column: 1 / -1; }
}

.pf-label {
    font-weight: 600;
    font-size: 0.92rem;
    color: #2C3A47;
}
.pf-required { color: #E84393; margin-left: 2px; }
.pf-helper {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-line;
    margin-bottom: 0.25rem;
}

.pf-form input[type="text"],
.pf-form input[type="email"],
.pf-form input[type="tel"],
.pf-form input[type="url"],
.pf-form input[type="number"],
.pf-form input[type="date"],
.pf-form select,
.pf-form textarea {
    padding: 0.75rem 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    color: #2C3A47;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    line-height: 1.4;
}
.pf-form input:focus,
.pf-form select:focus,
.pf-form textarea:focus {
    outline: none;
    border-color: #E84393;
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.12);
}
.pf-form textarea { min-height: 110px; resize: vertical; }
.pf-form select {
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23999' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.2rem;
}

/* Field error highlight */
.pf-field.pf-has-error input,
.pf-field.pf-has-error select,
.pf-field.pf-has-error textarea {
    border-color: #dc3545;
    background: #fff5f5;
}
.pf-field-error {
    color: #b3261e;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Radio / checkbox groups */
.pf-options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.25rem 0;
}
.pf-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #2C3A47;
}
.pf-option input[type="radio"],
.pf-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #E84393;
    margin: 0;
    flex: 0 0 18px;
}
.pf-option-other .pf-other-input {
    flex: 1;
    margin-left: 0.5rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-bottom-color: #999;
    border-radius: 0;
    border-top: 0; border-left: 0; border-right: 0;
    background: transparent;
    font-size: 0.92rem;
}
.pf-option-other .pf-other-input:focus {
    border-bottom-color: #E84393;
    box-shadow: none;
}

/* Consent (single checkbox) */
.pf-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2C3A47;
}
.pf-consent input { width: 18px; height: 18px; accent-color: #E84393; margin: 2px 0 0; }

/* Submit button — gradient matching modal */
.pf-submit {
    margin-top: 1.4rem;
    padding: 0.95rem 1.6rem;
    background: linear-gradient(135deg, #E84393 0%, #40B590 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .1s, box-shadow .2s, opacity .15s;
    width: 100%;
}
.pf-submit:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(232, 67, 147, 0.28);
}
.pf-submit:active:not(:disabled) { transform: translateY(1px); }
.pf-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.pf-form-error {
    padding: 1rem; background: #f8d7da; color: #721c24;
    border: 1px solid #f5c6cb; border-radius: 6px;
}

/* ===========================================================
 *  OTP modal — same look & feel as the theme's modal
 * =========================================================== */
.pf-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(44, 58, 71, 0.6);
    display: none;
    align-items: center; justify-content: center;
    z-index: 99999;
    padding: 1rem;
}
.pf-modal-backdrop.open {
    display: flex;
    animation: pfFade .2s ease;
}
.pf-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 480px; width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: pfPop .25s cubic-bezier(.4, 0, .2, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
.pf-modal-close {
    position: absolute; top: 10px; right: 14px;
    background: transparent; border: none;
    font-size: 30px; line-height: 1;
    color: #fff; cursor: pointer; padding: 4px 10px;
    z-index: 2; opacity: .85;
}
.pf-modal-close:hover { opacity: 1; }
.pf-modal-header {
    background: linear-gradient(135deg, #E84393 0%, #40B590 100%);
    color: #fff;
    padding: 28px 32px;
    text-align: center;
}
.pf-modal-header h3 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
}
.pf-modal-eyebrow {
    margin: 6px 0 0; font-size: 0.75rem; opacity: 0.9;
    letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500;
}
.pf-modal-body { padding: 24px 32px 28px; }
.pf-modal-body p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: #2C3A47; }
.pf-modal-email {
    display: inline-block; background: #fdf2f8; padding: 3px 10px;
    border-radius: 4px; font-weight: 600; color: #E84393; word-break: break-all;
}
.pf-modal-otp {
    width: 100%; padding: 14px;
    font-family: 'Courier New', monospace;
    font-size: 1.6rem; letter-spacing: 10px;
    text-align: center;
    border: 2px solid #e5e7eb; border-radius: 10px;
    margin: 6px 0 16px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.pf-modal-otp:focus { border-color: #E84393; }
.pf-modal-status {
    padding: 10px 14px; border-radius: 6px;
    font-size: 0.92rem; line-height: 1.5;
    margin-bottom: 14px; display: none;
}
.pf-modal-status.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pf-modal-status.info  { display: block; background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.pf-modal-verify {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #E84393 0%, #40B590 100%);
    color: #fff; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer;
    transition: transform .1s, box-shadow .2s;
    font-family: inherit;
}
.pf-modal-verify:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(232, 67, 147, .35); }
.pf-modal-verify:active:not(:disabled) { transform: translateY(1px); }
.pf-modal-verify:disabled { opacity: .7; cursor: not-allowed; }
.pf-modal-footer {
    margin-top: 14px; text-align: center;
    font-size: 0.85rem; color: #6b7280;
}
.pf-modal-footer a { color: #E84393; text-decoration: underline; cursor: pointer; }
.pf-modal-footer .dot { margin: 0 6px; color: #cbd5e1; }

@keyframes pfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pfPop {
    from { opacity: 0; transform: translateY(20px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 520px) {
    .pf-modal-header { padding: 22px 20px; }
    .pf-modal-body { padding: 20px 20px 24px; }
    .pf-modal-otp { font-size: 1.3rem; letter-spacing: 7px; }
}
