/* ==========================================================
   zxacc — "Request a Product" section
   [UPGRADE] Replaces the old Newsletter section above the footer.
   Additive: new selectors only (.product-request-section, .pr-*, .rf-*),
   nothing here touches or removes the (now-unused) .newsletter-* rules
   left in main.css/pro.css — safe to revert by dropping this file alone
   and restoring the newsletter markup in footer.php.
   Uses the site's existing palette tokens (theme-cream-blue-palette.css)
   and the self-hosted Estedad / Vazirmatn fonts already loaded site-wide.
   ========================================================== */

.product-request-section {
    padding: 64px 0;
    background: var(--bg-secondary);
}
@media (max-width: 900px) {
    .product-request-section { padding: 44px 0; }
}
@media (max-width: 480px) {
    .product-request-section { padding: 36px 0; }
}

.pr-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(150deg, #FCFAF4 0%, #ffffff 55%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    box-shadow: 0 28px 70px -20px rgba(32, 56, 82, .22), 0 2px 8px rgba(32, 56, 82, .06);
}
.pr-card::before {
    content: '';
    position: absolute;
    top: -140px;
    inset-inline-start: -100px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 197, 61, .20), transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.pr-card::after {
    content: '';
    position: absolute;
    bottom: -160px;
    inset-inline-end: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 94, 136, .10), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* ===== Content column ===== */
.pr-content {
    position: relative;
    z-index: 1;
    padding: 52px 46px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pr-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    font-family: var(--font-fa, 'Vazirmatn'), Tahoma, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(255, 197, 61, .30), rgba(255, 197, 61, .14));
    border: 1px solid rgba(255, 197, 61, .5);
    padding: 7px 15px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.pr-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.pr-title {
    font-family: 'Estedad', var(--font-fa, 'Vazirmatn'), Tahoma, sans-serif;
    font-weight: 900;
    font-size: 33px;
    line-height: 1.5;
    letter-spacing: -.2px;
    color: var(--text-primary);
    margin: 0 0 14px;
}
.pr-title .hl {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pr-desc {
    font-family: var(--font-fa, 'Vazirmatn'), Tahoma, sans-serif;
    font-weight: 500;
    font-size: 14.5px;
    line-height: 2;
    color: var(--text-secondary);
    margin: 0 0 26px;
    max-width: 460px;
}

.pr-trust { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; row-gap: 10px; }
.pr-trust-item { display: flex; align-items: center; gap: 7px; font-family: var(--font-fa, 'Vazirmatn'), Tahoma, sans-serif; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.pr-trust-item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.pr-trust-sep { width: 1px; height: 16px; background: var(--border); }

/* ===== Form card ===== */
.pr-form {
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .72));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, .9);
    outline: 1px solid rgba(53, 94, 136, .08);
    border-radius: 20px;
    padding: 26px 26px 24px;
    box-shadow: 0 18px 40px -14px rgba(53, 94, 136, .20), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.rf-field { position: relative; margin-bottom: 15px; }
.rf-field:last-of-type { margin-bottom: 0; }
.rf-label { display: flex; align-items: center; gap: 5px; font-family: var(--font-fa, 'Vazirmatn'), Tahoma, sans-serif; font-size: 11.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.rf-label .req { color: var(--secondary); font-size: 10px; }
.rf-label .opt { color: var(--text-muted); font-weight: 500; }
.rf-input-wrap { position: relative; display: flex; align-items: center; }
.rf-icon-chip {
    position: absolute;
    inset-inline-start: 6px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(53, 94, 136, .12), rgba(82, 132, 176, .08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    pointer-events: none;
    transition: background .2s, color .2s;
}
.rf-icon-chip svg { width: 15px; height: 15px; }
.rf-input {
    width: 100%;
    padding: 12px 16px;
    padding-inline-start: 46px;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    font-size: 13.5px;
    font-family: var(--font-fa, 'Vazirmatn'), Tahoma, sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.rf-input:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(82, 132, 176, .14); }
.rf-input:focus + .rf-icon-chip, .rf-input-wrap:focus-within .rf-icon-chip { background: var(--gradient-primary); color: #fff; }
.rf-input::placeholder { color: var(--text-muted); font-weight: 400; }
.rf-input[dir="ltr"] { text-align: left; }
.rf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.rf-submit {
    width: 100%;
    margin-top: 16px;
    padding: 15px 18px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-fa, 'Vazirmatn'), Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 14px 30px -8px rgba(53, 94, 136, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
    position: relative;
    overflow: hidden;
    transition: opacity .2s, transform .2s;
}
.rf-submit:disabled { cursor: not-allowed; opacity: .82; }
.rf-submit-rocket, .rf-submit-check { display: inline-flex; width: 17px; height: 17px; }
.rf-submit-rocket svg, .rf-submit-check svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .2)); }
.rf-submit-check { display: none; }
.rf-submit-spinner {
    display: none;
    width: 16px; height: 16px; border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: pr-spin .7s linear infinite;
}
@keyframes pr-spin { to { transform: rotate(360deg); } }

/* rocket-away → checkmark-in micro-interaction, triggered via JS classes */
.rf-submit.is-loading .rf-submit-rocket { display: none; }
.rf-submit.is-loading .rf-submit-spinner { display: inline-block; }

.rf-submit.is-launching .rf-submit-rocket {
    animation: pr-rocket-launch .65s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes pr-rocket-launch {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate(22px, -26px) rotate(38deg); opacity: 0; }
}
.rf-submit.is-done { background: linear-gradient(135deg, #22c55e, #16a34a); }
.rf-submit.is-done .rf-submit-spinner { display: none; }
.rf-submit.is-done .rf-submit-rocket { display: none; }
.rf-submit.is-done .rf-submit-check {
    display: inline-flex;
    animation: pr-check-in .35s ease-out;
}
@keyframes pr-check-in {
    0% { transform: scale(.3); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.pr-status { font-family: var(--font-fa, 'Vazirmatn'), Tahoma, sans-serif; font-size: 12px; font-weight: 600; margin: 10px 0 0; min-height: 1px; }
.pr-status.is-error { color: #dc2626; }
.pr-status.is-success { color: #16a34a; }
.pr-status.is-cooldown { color: var(--text-muted); }

.rf-note { display: flex; align-items: center; gap: 6px; font-family: var(--font-fa, 'Vazirmatn'), Tahoma, sans-serif; font-size: 11px; color: var(--text-muted); margin-top: 12px; font-weight: 500; }
.rf-note svg { width: 13px; height: 13px; color: var(--primary-light); flex-shrink: 0; }

@media (max-width: 860px) { .rf-two { grid-template-columns: 1fr; } }

/* honeypot — visually hidden but present for bots */
.pr-card .beiten-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Media panel — the user's own promotional photo ===== */
.pr-media {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: #0d1b2a;
    display: block;
    min-height: 100%;
}
.pr-media-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 38%;
}
.pr-media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(165deg, rgba(32, 56, 82, .16) 0%, rgba(53, 94, 136, .04) 45%, rgba(32, 56, 82, .30) 100%);
}
.pr-media::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 46%;
    z-index: 1;
    background: linear-gradient(0deg, rgba(13, 27, 42, .55) 0%, rgba(13, 27, 42, 0) 100%);
}

.pr-float-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(249, 245, 236, .85));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 15px;
    padding: 10px 14px;
    box-shadow: 0 12px 26px -8px rgba(32, 56, 82, .28), inset 0 1px 0 rgba(255, 255, 255, .7);
    font-family: var(--font-fa, 'Vazirmatn'), Tahoma, sans-serif;
}
.pr-float-chip.top { top: 26px; inset-inline-start: 22px; }
.pr-float-chip.bottom { bottom: 26px; inset-inline-end: 22px; }
.chip-ico { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chip-ico.gold { background: linear-gradient(135deg, #FFC53D, #FFD873); color: #5a4200; }
.chip-ico.navy { background: var(--gradient-primary); color: #fff; }
.chip-ico svg { width: 16px; height: 16px; }
.chip-num { font-size: 14px; font-weight: 900; color: var(--text-primary); line-height: 1.2; }
.chip-lbl { font-size: 10.5px; font-weight: 600; color: var(--text-secondary); line-height: 1.3; }

@media (max-width: 860px) {
    .pr-card { grid-template-columns: 1fr; border-radius: 24px; }
    .pr-media { order: -1; height: 260px; }
    .pr-content { padding: 30px 24px 34px; }
    .pr-title { font-size: 25px; }
    .pr-float-chip { padding: 8px 11px; }
}
@media (max-width: 420px) {
    .pr-content { padding: 26px 18px 28px; }
    .pr-float-chip.bottom { inset-inline-end: 12px; bottom: 14px; }
    .pr-float-chip.top { inset-inline-start: 12px; top: 14px; }
}
