/* ════════════════════════════════════════════════════════
   TourGuide.do — Payment page (10/50/100%)
   ════════════════════════════════════════════════════════ */

:root {
    --tg-brand:    #c2da1c;
    --tg-primary:  #ff6b35;
    --tg-primary-dk: #e85a25;
    --tg-dark:     #1B1F1C;
    --tg-text:     #334155;
    --tg-light:    #f8fafc;
    --tg-border:   #e2e8f0;
    --tg-success:  #16a34a;
    --tg-error:    #dc2626;
    --tg-whatsapp: #25D366;
    --tg-whatsapp-dk: #1fb355;
}

.tg-payment {
    background: #f8fafc;
    min-height: 80vh;
    padding-bottom: 60px;
}

/* HERO */
.tg-payment-hero {
    background: linear-gradient(135deg, var(--tg-dark) 0%, #2a2f2b 100%);
    color: #fff;
    padding: 60px 24px 80px;
    text-align: center;
}
.tg-payment-hero__inner {
    max-width: 700px;
    margin: 0 auto;
}
.tg-payment-hero__title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}
.tg-payment-hero__sub {
    color: rgba(255,255,255,.85);
    font-size: 1rem;
    margin: 0;
}

/* WRAP */
.tg-payment-wrap {
    max-width: 1100px;
    margin: -40px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* GRID */
.tg-payment-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 900px) {
    .tg-payment-grid { grid-template-columns: 1fr; }
}

/* SUMMARY (sidebar) */
.tg-payment-summary {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
    position: sticky;
    top: 24px;
}
.tg-payment-summary__title {
    font-size: .82rem;
    font-weight: 700;
    color: var(--tg-text);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tg-primary);
}
.tg-payment-summary__list {
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px 16px;
    font-size: .92rem;
}
.tg-payment-summary__list dt {
    color: #64748b;
    font-weight: 500;
}
.tg-payment-summary__list dd {
    margin: 0;
    color: var(--tg-dark);
    font-weight: 500;
}
.tg-payment-summary__list dd strong { color: var(--tg-dark); }

.tg-payment-summary__total {
    border-top: 2px solid var(--tg-border);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.tg-payment-summary__total span {
    color: #64748b;
    font-size: .9rem;
}
.tg-payment-summary__total strong {
    color: var(--tg-dark);
    font-size: 1.5rem;
    font-weight: 800;
}

/* OPTIONS (main) */
.tg-payment-options {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.tg-payment-options__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--tg-dark);
    margin: 0 0 24px;
    text-align: center;
}

/* DEPOSIT OPTIONS */
.tg-deposit-option {
    display: block;
    margin-bottom: 14px;
    cursor: pointer;
    position: relative;
}
.tg-deposit-option input { position: absolute; opacity: 0; pointer-events: none; }

.tg-deposit-option__inner {
    border: 2px solid var(--tg-border);
    border-radius: 12px;
    padding: 20px 22px;
    transition: all .2s;
    background: #fff;
    position: relative;
}

/* Hover */
.tg-deposit-option:hover .tg-deposit-option__inner {
    border-color: var(--tg-primary);
    box-shadow: 0 4px 12px rgba(255,107,53,.12);
}

/* Selected state */
.tg-deposit-option input:checked + .tg-deposit-option__inner,
.tg-deposit-option--selected .tg-deposit-option__inner {
    border-color: var(--tg-primary);
    background: #fff7ed;
    box-shadow: 0 6px 18px rgba(255,107,53,.18);
}

.tg-deposit-option__badge {
    position: absolute;
    top: -10px;
    left: 18px;
    background: var(--tg-brand);
    color: var(--tg-dark);
    font-size: .7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tg-deposit-option__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.tg-deposit-option__head h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tg-dark);
}
.tg-deposit-option__head p {
    margin: 0;
    color: #64748b;
    font-size: .88rem;
    line-height: 1.4;
}
.tg-deposit-option__price {
    text-align: right;
    flex-shrink: 0;
}
.tg-deposit-option__price strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--tg-primary);
    line-height: 1;
}
.tg-deposit-option__price span {
    font-size: .72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tg-deposit-option__remaining {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--tg-border);
    color: #64748b;
    font-size: .85rem;
}
.tg-deposit-option__remaining strong {
    color: var(--tg-dark);
    margin-left: 6px;
}

/* PAY BUTTON */
.tg-btn-pay {
    width: 100%;
    background: var(--tg-primary);
    color: #fff !important;
    border: 0;
    border-radius: 50px;
    padding: 18px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    margin-top: 24px;
    box-shadow: 0 6px 20px rgba(255,107,53,.3);
    display: block;
    text-align: center;
}
.tg-btn-pay:hover:not(:disabled) {
    background: var(--tg-primary-dk);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255,107,53,.4);
}
.tg-btn-pay:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* SECURE NOTE */
.tg-payment-secure {
    text-align: center;
    margin-top: 18px;
    color: #64748b;
}
.tg-payment-secure p {
    margin: 0 0 4px;
    font-size: .85rem;
    color: var(--tg-success);
    font-weight: 600;
}
.tg-payment-secure small { font-size: .76rem; opacity: .8; }

/* LOADING */
.tg-payment-loading {
    text-align: center;
    padding: 40px 20px;
}
.tg-payment-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--tg-border);
    border-top-color: var(--tg-primary);
    border-radius: 50%;
    animation: tgspin .7s linear infinite;
    margin: 0 auto 16px;
}
@keyframes tgspin { to { transform: rotate(360deg); } }
.tg-payment-loading p {
    color: var(--tg-text);
    font-size: 1rem;
}

/* ERROR */
.tg-payment-fail {
    background: #fef2f2;
    border: 1px solid var(--tg-error);
    border-radius: 10px;
    padding: 14px 18px;
    color: #7f1d1d;
    margin-top: 20px;
    font-size: .9rem;
}

/* WHATSAPP ALT */
.tg-payment-wa {
    margin-top: 28px;
    text-align: center;
}
.tg-payment-wa hr {
    border: 0;
    border-top: 1px solid var(--tg-border);
    margin: 0 0 16px;
}
.tg-payment-wa p {
    color: #64748b;
    font-size: .9rem;
    margin: 0 0 12px;
}
.tg-btn-wa-alt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tg-whatsapp);
    color: #fff !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: all .2s;
}
.tg-btn-wa-alt:hover {
    background: var(--tg-whatsapp-dk);
    transform: translateY(-2px);
}

/* INVALID */
.tg-payment-error {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.tg-payment-error__icon { font-size: 3rem; margin-bottom: 12px; }
.tg-payment-error h2 { font-size: 1.4rem; color: var(--tg-error); margin: 0 0 10px; }
.tg-payment-error p { color: var(--tg-text); margin: 0 0 24px; }
.tg-payment-error .tg-btn--primary {
    background: var(--tg-primary);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tg-payment-hero { padding: 40px 20px 60px; }
    .tg-payment-summary, .tg-payment-options { padding: 22px; }
    .tg-payment-summary { position: static; }
    .tg-deposit-option__head { flex-direction: column; align-items: flex-start; }
    .tg-deposit-option__price { text-align: left; }
    .tg-deposit-option__price strong { font-size: 1.6rem; }
}
