/* =============================================================
   Team Headshot Pricing Calculator — Luxury Theme CSS
   ============================================================= */

/* Import Cormorant Garamond (display) + Jost (body) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
.thpc-wrapper {
    --thpc-gold:          #d4af37;
    --thpc-gold-light:    #e8cc6a;
    --thpc-gold-dark:     #a8852a;
    --thpc-black:         #1a1a1a;
    --thpc-white:         #ffffff;
    --thpc-off-white:     #faf9f7;
    --thpc-border:        #e8e0d0;
    --thpc-text:          #2c2c2c;
    --thpc-muted:         #7a7068;
    --thpc-input-bg:      #ffffff;
    --thpc-radius:        12px;
    --thpc-shadow:        0 20px 60px rgba(26, 26, 26, 0.12);
    --thpc-font-display:  'Cormorant Garamond', Georgia, serif;
    --thpc-font-body:     'Jost', sans-serif;
    --thpc-transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Wrapper ────────────────────────────────────────────────── */
.thpc-wrapper {
    font-family: var(--thpc-font-body);
    color: var(--thpc-text);
    background: var(--thpc-white);
    border-radius: var(--thpc-radius);
    box-shadow: var(--thpc-shadow);
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--thpc-border);
}

/* Gold top accent bar */
.thpc-wrapper::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--thpc-gold-dark), var(--thpc-gold), var(--thpc-gold-light));
    position: absolute;
    top: 0; left: 0; right: 0;
}

/* Scroll fade-in animation */
.thpc-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.thpc-wrapper.thpc-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Inner ──────────────────────────────────────────────────── */
.thpc-inner {
    padding: 48px 52px 44px;
}
@media (max-width: 768px) {
    .thpc-inner { padding: 36px 28px 32px; }
}
@media (max-width: 480px) {
    .thpc-inner { padding: 28px 20px 24px; }
}

/* ── Header ─────────────────────────────────────────────────── */
.thpc-header {
    margin-bottom: 36px;
    border-bottom: 1px solid var(--thpc-border);
    padding-bottom: 28px;
}

.thpc-title {
    font-family: var(--thpc-font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--thpc-black);
    margin: 0 0 8px;
    line-height: 1.15;
}

.thpc-subtitle {
    font-family: var(--thpc-font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--thpc-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Field Rows ─────────────────────────────────────────────── */
.thpc-field-row {
    margin-bottom: 24px;
}
.thpc-field-row:last-child { margin-bottom: 0; }

/* ── Labels ─────────────────────────────────────────────────── */
.thpc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--thpc-black);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.thpc-required {
    color: var(--thpc-gold-dark);
    font-size: 1em;
}

.thpc-price-hint {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--thpc-muted);
    text-transform: none;
    letter-spacing: 0;
    margin-left: auto;
    background: var(--thpc-off-white);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid var(--thpc-border);
}

/* ── Inputs ─────────────────────────────────────────────────── */
.thpc-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1.5px solid var(--thpc-border);
    border-radius: 8px;
    background: var(--thpc-input-bg);
    color: var(--thpc-text);
    font-family: var(--thpc-font-body);
    font-size: 1rem;
    font-weight: 400;
    transition: border-color var(--thpc-transition), box-shadow var(--thpc-transition);
    -moz-appearance: textfield;
    box-sizing: border-box;
}

.thpc-input::-webkit-outer-spin-button,
.thpc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.thpc-input::placeholder { color: #b0a898; }

.thpc-input:hover {
    border-color: #c8b878;
}

.thpc-input:focus {
    outline: none;
    border-color: var(--thpc-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* ── Radio Buttons ──────────────────────────────────────────── */
.thpc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thpc-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--thpc-text);
    line-height: 1.5;
    padding: 12px 14px;
    border: 1.5px solid var(--thpc-border);
    border-radius: 8px;
    transition: border-color var(--thpc-transition), background var(--thpc-transition);
    background: var(--thpc-white);
}

.thpc-radio-label:hover {
    border-color: var(--thpc-gold-light);
    background: #fffdf5;
}

.thpc-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.thpc-radio-label input[type="radio"]:checked ~ .thpc-radio-label,
.thpc-radio-label:has(input:checked) {
    border-color: var(--thpc-gold);
    background: #fffdf0;
}

.thpc-radio-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--thpc-border);
    border-radius: 50%;
    position: relative;
    margin-top: 2px;
    transition: border-color var(--thpc-transition);
}

.thpc-radio-label:has(input:checked) .thpc-radio-custom {
    border-color: var(--thpc-gold);
}

.thpc-radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--thpc-gold);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--thpc-transition);
}

.thpc-radio-label:has(input:checked) .thpc-radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.thpc-radio-label em {
    font-style: italic;
    color: var(--thpc-muted);
    font-size: 0.85em;
}

/* ── Tooltip ────────────────────────────────────────────────── */
.thpc-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--thpc-muted);
    cursor: help;
}

.thpc-tooltip-content {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--thpc-black);
    color: var(--thpc-white);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 6px;
    width: 220px;
    white-space: normal;
    z-index: 100;
    transition: opacity 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.thpc-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--thpc-black);
}

.thpc-tooltip:hover .thpc-tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* ── Result Box ─────────────────────────────────────────────── */
.thpc-result-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2417 100%);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 32px 0 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.18);
    position: relative;
    overflow: hidden;
}

.thpc-result-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% -30%, rgba(212,175,55,0.15) 0%, transparent 60%);
}

.thpc-result-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.7);
    margin-bottom: 8px;
    position: relative;
}

.thpc-result-amount {
    font-family: var(--thpc-font-display);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--thpc-gold);
    line-height: 1;
    position: relative;
    transition: all 0.35s ease;
}

.thpc-currency {
    font-size: 0.55em;
    vertical-align: super;
    font-weight: 600;
    margin-right: 2px;
}

.thpc-result-breakdown {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-top: 10px;
    position: relative;
    line-height: 1.7;
}

/* ── Discount Badge ─────────────────────────────────────────── */
.thpc-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    background: rgba(212,175,55,0.18);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 20px;
    padding: 4px 12px;
    position: relative;
}

.thpc-discount-text {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--thpc-gold-light);
    letter-spacing: 0.05em;
}

/* Amount update flash animation */
@keyframes thpc-flash {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.04); color: var(--thpc-gold-light); }
    100% { transform: scale(1); }
}
.thpc-result-amount.thpc-updating {
    animation: thpc-flash 0.4s ease;
}

/* ── CTA Button ─────────────────────────────────────────────── */
.thpc-cta-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.thpc-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--thpc-gold);
    color: var(--thpc-black);
    font-family: var(--thpc-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 50px;
    border: 2px solid var(--thpc-gold);
    transition: background var(--thpc-transition), color var(--thpc-transition), border-color var(--thpc-transition), transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.thpc-cta-button:hover {
    background: transparent;
    color: var(--thpc-gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
    transform: translateY(-1px);
}

.thpc-arrow {
    transition: transform var(--thpc-transition);
}
.thpc-cta-button:hover .thpc-arrow {
    transform: translateX(4px);
}

/* ── Volume Discount Info ────────────────────────────────────── */
.thpc-discount-info {
    border-top: 1px solid var(--thpc-border);
    padding-top: 20px;
    text-align: center;
}

.thpc-discount-info-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--thpc-muted);
    margin-bottom: 8px;
}

.thpc-discount-tiers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--thpc-muted);
}

.thpc-discount-tiers strong { color: var(--thpc-black); }
.thpc-divider { color: var(--thpc-border); }

.thpc-tier {
    padding: 3px 10px;
    border-radius: 20px;
    transition: background var(--thpc-transition), color var(--thpc-transition);
}

.thpc-tier.thpc-active-tier {
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.3);
    color: var(--thpc-black);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .thpc-result-amount { font-size: 2.4rem; }
    .thpc-result-box    { padding: 22px 20px; }
    .thpc-cta-button    { padding: 14px 24px; font-size: 0.85rem; }
    .thpc-discount-tiers { flex-direction: column; gap: 2px; }
    .thpc-divider { display: none; }
}
