/*
 * Paymentbaz Forms — Frontend Styles
 * فونت از قالب فعال وردپرس ارث‌بری می‌شود (inherit)
 * رنگ‌های دکمه از PHP به عنوان CSS custom property تزریق می‌شوند
 */

.pf-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px 22px;
    margin: 24px 0;
    font-family: inherit;
    font-size: inherit;
    direction: rtl;
    max-width: 520px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    box-sizing: border-box;
}

.pf-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-field {
    margin-bottom: 14px;
}

.pf-label {
    display: block;
    font-size: .8em;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.pf-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: .95em;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    box-sizing: border-box;
    text-align: right;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.pf-input:focus {
    border-color: var(--pf-submit-color, #4a6cf7);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-submit-color, #4a6cf7) 15%, transparent);
}

.pf-input::placeholder {
    color: #cbd5e1;
}

select.pf-input {
    cursor: pointer;
}

.pf-textarea {
    resize: vertical;
    min-height: 90px;
}

.pf-file-input {
    width: 100%;
    padding: 10px;
    border: 2px dashed #e2e8f0;
    border-radius: 9px;
    font-family: inherit;
    font-size: .85em;
    color: #64748b;
    background: #f8fafc;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color .2s;
}

.pf-file-input:hover {
    border-color: var(--pf-submit-color, #4a6cf7);
}

.pf-file-hint {
    font-size: .75em;
    color: #94a3b8;
    margin: 4px 0 0;
}

.pf-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pf-deal-types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pf-deal-types input[type="radio"] {
    display: none;
}

.pf-deal-types label {
    flex: 1;
    min-width: 80px;
    padding: 11px 6px;
    border: 2px solid #e2e8f0;
    border-radius: 9px;
    text-align: center;
    cursor: pointer;
    font-size: .85em;
    font-family: inherit;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    transition: all .2s;
    user-select: none;
}

.pf-deal-types input[type="radio"]:checked + label {
    border-color: var(--dc, var(--pf-submit-color, #4a6cf7));
    background: color-mix(in srgb, var(--dc, var(--pf-submit-color, #4a6cf7)) 10%, #fff);
    color: var(--dc, var(--pf-submit-color, #4a6cf7));
}

.pf-deal-types input[type="radio"]:disabled + label {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
    background: #f0f0f0;
    border-color: #e2e8f0;
    color: #aaa;
}

.pf-deal-types input[type="radio"]:not(:disabled) + label:hover {
    border-color: var(--dc, var(--pf-submit-color, #4a6cf7));
    color: var(--dc, var(--pf-submit-color, #4a6cf7));
}

.pf-btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--pf-submit-color, #4a6cf7);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 1em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 10px;
    display: block;
    transition: filter .15s, transform .1s;
    letter-spacing: .3px;
}

.pf-btn-submit:hover  { filter: brightness(.9); }
.pf-btn-submit:active { transform: scale(.98); }

.pf-btn-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    background: var(--pf-phone-color, #27ae60);
    color: #fff;
    border-radius: 9px;
    font-size: 1em;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    box-sizing: border-box;
    transition: filter .15s;
}

.pf-btn-phone:hover { filter: brightness(.9); color: #fff; }

.pf-success {
    background: #f0fdf4;
    color: #166534;
    border: 1.5px solid #bbf7d0;
    border-radius: 9px;
    padding: 13px 16px;
    margin-bottom: 16px;
    font-size: .85em;
    line-height: 1.9;
}
