/* ----------------------------------------------------------------
   Variables & base
---------------------------------------------------------------- */
:root {
    --ptp-orange: #FF6B00;
    --ptp-dark:   #2D2D2D;
    --ptp-light:  #FFF4EC;
    --ptp-hover:  #E55C00;
}

body {
    background: #F8F9FA;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* ----------------------------------------------------------------
   Navbar
---------------------------------------------------------------- */
.bg-ptp {
    background-color: var(--ptp-dark) !important;
}

.ptp-logo-nav {
    filter: brightness(0) invert(1);
}

/* ----------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.btn-ptp {
    background-color: var(--ptp-orange);
    border-color:     var(--ptp-orange);
    color: #fff;
    border-radius: 8px;
    transition: background-color .2s, transform .1s;
}

.btn-ptp:hover, .btn-ptp:focus {
    background-color: var(--ptp-hover);
    border-color:     var(--ptp-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ptp:active { transform: translateY(0); }

.btn-ptp:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/* ----------------------------------------------------------------
   Product hero
---------------------------------------------------------------- */
.product-hero {
    background: linear-gradient(135deg, var(--ptp-orange) 0%, #FF9A3C 100%);
    border-radius: 12px;
    min-height: 260px;
}

.product-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}

.price-badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,.4);
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    padding: .4rem 1.5rem;
    border-radius: 50px;
    margin-bottom: .5rem;
}

/* ----------------------------------------------------------------
   Product selection cards
---------------------------------------------------------------- */
.product-select-card {
    position: relative;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .1s;
}

.product-select-card:hover {
    border-color: var(--ptp-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.product-select-card:focus-visible {
    outline: none;
    border-color: var(--ptp-orange);
    box-shadow: 0 0 0 .2rem rgba(255,107,0,.2);
}

.product-select-card.selected {
    border-color: var(--ptp-orange);
    background: var(--ptp-light);
    box-shadow: 0 4px 14px rgba(255,107,0,.15);
}

.product-select-icon {
    font-size: 2.75rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}

.product-select-check {
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #fff;
    color: transparent;
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s, border-color .15s, color .15s;
}

.product-select-card.selected .product-select-check {
    background: var(--ptp-orange);
    border-color: var(--ptp-orange);
    color: #fff;
}

/* ----------------------------------------------------------------
   Step badges (checkout)
---------------------------------------------------------------- */
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--ptp-orange);
    color: #fff;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
    margin-right: .5rem;
}

/* ----------------------------------------------------------------
   Cards
---------------------------------------------------------------- */
.card { border-radius: 12px !important; }
.card-header { border-radius: 12px 12px 0 0 !important; }

/* ----------------------------------------------------------------
   Result banner
---------------------------------------------------------------- */
.result-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 12px;
    color: #fff;
}

.result-approved   { background: linear-gradient(135deg, #28A745, #20C997); }
.result-declined   { background: linear-gradient(135deg, #DC3545, #E05260); }
.result-pending    { background: linear-gradient(135deg, #FFC107, #FFAB00); color: #333; }
.result-failed     { background: linear-gradient(135deg, #6C757D, #495057); }
.result-redirect,
.result-processing { background: linear-gradient(135deg, #0D6EFD, #0A58CA); }

.result-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
}

.result-title    { font-size: 1.5rem; font-weight: 700; }
.result-subtitle { opacity: .85; margin-top: .25rem; }

/* ----------------------------------------------------------------
   Utilities
---------------------------------------------------------------- */
.font-mono { font-family: 'Courier New', monospace; }

.franchise-logos img {
    opacity: .75;
    transition: opacity .2s;
}
.franchise-logos img:hover { opacity: 1; }

/* ----------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.footer { font-size: .875rem; }

/* ----------------------------------------------------------------
   Prose (terms page)
---------------------------------------------------------------- */
.prose h5 {
    color: var(--ptp-dark);
    margin-top: 1.5rem;
    font-weight: 600;
}
.prose p, .prose li { color: #555; line-height: 1.75; }

/* ----------------------------------------------------------------
   Accordion (FAQ)
---------------------------------------------------------------- */
.accordion-button:not(.collapsed) {
    background-color: var(--ptp-light);
    color: var(--ptp-orange);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(255,107,0,.2); }

/* ----------------------------------------------------------------
   Checkout cards (PlaceToPay-style)
---------------------------------------------------------------- */
.checkout-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

.checkout-section-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin-bottom: .75rem;
}

/* Card number with brand badge */
.card-number-input { font-family: 'Courier New', monospace; letter-spacing: .05em; padding-right: 90px; }

.card-brand-badge {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f3f4f6;
    display: none;
}

/* Doc type select — compact */
.doc-type-select {
    border-right: 0;
    border-radius: 8px 0 0 8px !important;
    font-weight: 600;
    font-size: .875rem;
}

/* Phone flag button */
.phone-flag-btn {
    border-right: 0;
    border-radius: 8px 0 0 8px !important;
    white-space: nowrap;
    font-size: .875rem;
    min-width: 100px;
    justify-content: center;
    gap: .25rem;
    letter-spacing: .01em;
}

.phone-dropdown {
    max-height: 260px;
    overflow-y: auto;
    min-width: 240px;
    font-size: .875rem;
}

.phone-dropdown .dropdown-item { padding: .4rem .75rem; }

/* ----------------------------------------------------------------
   Print
---------------------------------------------------------------- */
@media print {
    .navbar, .footer, .btn, .alert { display: none !important; }
    .result-banner { border: 2px solid #ccc !important;
                     background: none !important; color: #000 !important; }
}
