/* tx-checkout.css
   Scoped styles for the Tech X Summit checkout result pages
   (success.html, cancel.html). All classes prefixed `tx-co-*` to avoid
   any collision with the Grand Conference theme CSS.
*/

.tx-co-root {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #f5f6ff 0%, #ffffff 100%);
}

.tx-co-card {
    background: #ffffff;
    border: 1px solid rgba(12, 5, 85, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(12, 5, 85, 0.10);
    max-width: 560px;
    width: 100%;
    padding: 48px 40px;
    text-align: center;
}

.tx-co-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 22px;
}

.tx-co-icon--success {
    background: rgba(46, 204, 113, 0.12);
    color: #1f8a4c;
}

.tx-co-icon--cancel {
    background: rgba(255, 159, 67, 0.15);
    color: #b8650a;
}

.tx-co-eyebrow {
    display: inline-block;
    background: rgba(12, 5, 85, 0.06);
    color: #0c0555;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.tx-co-title {
    font-size: 28px;
    font-weight: 700;
    color: #0c0555;
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}

.tx-co-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a6a;
    margin: 0 0 28px;
}

.tx-co-details {
    background: #f5f6ff;
    border: 1px solid rgba(12, 5, 85, 0.08);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: left;
    margin: 0 0 28px;
}

.tx-co-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(12, 5, 85, 0.06);
    font-size: 14px;
}

.tx-co-details-row:last-child {
    border-bottom: none;
}

.tx-co-details-label {
    color: #6b7280;
    font-weight: 500;
}

.tx-co-details-value {
    color: #0c0555;
    font-weight: 600;
    text-align: right;
}

.tx-co-ref-badge {
    display: inline-block;
    background: #0c0555;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.tx-co-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tx-co-btn {
    display: inline-block;
    background: #0c0555;
    color: #ffffff !important;
    border-radius: 40px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #0c0555;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.3px;
}

.tx-co-btn:hover {
    background: #1a1475;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(12, 5, 85, 0.25);
}

.tx-co-btn--ghost {
    background: transparent;
    color: #0c0555 !important;
}

.tx-co-btn--ghost:hover {
    background: rgba(12, 5, 85, 0.06);
    color: #0c0555 !important;
    box-shadow: none;
}

.tx-co-secure-note {
    margin-top: 28px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.tx-co-secure-note a {
    color: #0c0555;
    text-decoration: underline;
}

/* Small screens */
@media (max-width: 540px) {
    .tx-co-card { padding: 32px 22px; }
    .tx-co-title { font-size: 22px; }
    .tx-co-details { padding: 16px 18px; }
    .tx-co-btn { width: 100%; }
}


/* ==================================================================
   PRE-CHECKOUT MODAL (used by tx-passes-checkout.js on passes.html)
   Scoped to .tx-pc-* prefix to avoid theme collisions.
   ================================================================== */

.tx-pc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 5, 85, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    animation: tx-pc-fade 0.18s ease-out;
}

@keyframes tx-pc-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.tx-pc-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(12, 5, 85, 0.30);
    max-width: 460px;
    width: 100%;
    padding: 36px 32px 28px;
    position: relative;
    animation: tx-pc-rise 0.22s ease-out;
}

@keyframes tx-pc-rise {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.tx-pc-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.tx-pc-close:hover { background: rgba(12, 5, 85, 0.06); color: #0c0555; }

.tx-pc-eyebrow {
    display: inline-block;
    background: rgba(12, 5, 85, 0.06);
    color: #0c0555;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 16px;
    margin-bottom: 14px;
}

.tx-pc-title {
    font-size: 24px;
    font-weight: 700;
    color: #0c0555;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.tx-pc-price {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
}

.tx-pc-field {
    margin-bottom: 16px;
}

.tx-pc-field label {
    display: block;
    font-size: 13px;
    color: #0c0555;
    font-weight: 500;
    margin-bottom: 6px;
}

.tx-pc-req { color: #d33; }

.tx-pc-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(12, 5, 85, 0.15);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.tx-pc-field input:focus {
    border-color: #0c0555;
    box-shadow: 0 0 0 3px rgba(12, 5, 85, 0.10);
}

.tx-pc-hint {
    display: block;
    font-size: 11px;
    color: #9aa3b8;
    margin-top: 4px;
}

.tx-pc-error {
    color: #c0392b;
    font-size: 13px;
    min-height: 1em;
    margin: 8px 0;
    text-align: center;
}

.tx-pc-submit {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #0c0555;
    color: #ffffff;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.tx-pc-submit:hover {
    background: #1a1475;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(12, 5, 85, 0.25);
}

.tx-pc-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tx-pc-secure {
    text-align: center;
    font-size: 11px;
    color: #9aa3b8;
    margin-top: 18px;
    line-height: 1.5;
}

@media (max-width: 540px) {
    .tx-pc-card { padding: 28px 22px 22px; }
    .tx-pc-title { font-size: 20px; }
}
