/* Talent Brain Checkout Styles - Form Kiri + Order Review Kanan */
.tb-checkout-wrap {
    background: #F6F5F1;
    padding: 48px 20px 80px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #17202B;
}

.tb-checkout-wrap .woocommerce {
    width: 100%;
}

.tb-checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tb-checkout-header {
    text-align: center;
    margin-bottom: 44px;
}

.tb-checkout-eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    color: #B0673F;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tb-checkout-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 38px;
    font-weight: 600;
    color: #17202B;
    margin: 12px 0 10px;
}

.tb-checkout-subtitle {
    font-size: 15.5px;
    color: #4C5A6B;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Two Column Grid */
.tb-checkout-wrap .woocommerce-checkout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    align-items: start;
}

.tb-checkout-wrap .col2-set {
    grid-column: 1;
    grid-row: 1;
    display: none;
}

.tb-checkout-wrap .tb-checkout-left {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tb-checkout-wrap .tb-checkout-right-column {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}

/* Form Cards */
.tb-form-card {
    background: #fff;
    border: 1px solid #DAD5C8;
    border-radius: 2px;
    padding: 34px 38px;
}

.tb-form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #17202B;
    margin: 0 0 22px;
    border-bottom: 1px solid #EFEDE6;
    padding-bottom: 14px;
}

.tb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.tb-form-grid .tb-field-full {
    grid-column: 1 / -1;
}

.tb-field-wrapper label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #17202B;
    margin-bottom: 7px;
}

.tb-field-wrapper label .tb-req {
    color: #B0673F;
}

.tb-field-wrapper input[type="text"],
.tb-field-wrapper input[type="number"],
.tb-field-wrapper input[type="email"],
.tb-field-wrapper select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #DAD5C8;
    border-radius: 2px;
    font-size: 14px;
    color: #17202B;
    background: #F6F5F1;
    transition: all 0.15s;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.tb-field-wrapper input:focus,
.tb-field-wrapper select:focus {
    outline: none;
    border-color: #B0673F;
    background: #fff;
}

.tb-field-help {
    font-size: 12px;
    color: #8A95A5;
    margin-top: 6px;
}

.tb-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4C5A6B;
    line-height: 1.5;
    cursor: pointer;
}

.tb-consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #B0673F;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Order Review */
.tb-checkout-wrap #order_review_heading {
    display: none;
}

.tb-checkout-wrap #order_review {
    background: #fff;
    padding: 2.25rem;
    border: 1px solid #DAD5C8;
    border-radius: 2px;
}

.tb-checkout-wrap #order_review::before {
    content: 'Ringkasan Pesanan';
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #17202B;
    border-bottom: 1px solid #EFEDE6;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.tb-checkout-wrap table.shop_table {
    border: none;
    margin: 0;
    width: 100%;
    text-align: left;
}

.tb-checkout-wrap table.shop_table th,
.tb-checkout-wrap table.shop_table td {
    border: none;
    padding: 12px 0;
    border-bottom: 1px dashed #EFEDE6;
}

.tb-checkout-wrap table.shop_table tr.order-total th,
.tb-checkout-wrap table.shop_table tr.order-total td {
    border-bottom: none;
    border-top: 2px solid #EFEDE6;
    font-size: 18px;
    font-weight: 800;
    color: #17202B;
    padding-top: 18px;
}

.tb-checkout-wrap #payment {
    background: none;
    border-radius: 0;
    margin-top: 18px;
    padding: 0;
}

.tb-checkout-wrap #payment ul.payment_methods {
    border-bottom: 1px solid #EFEDE6;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.tb-checkout-wrap #payment ul.payment_methods li label {
    color: #17202B;
    font-size: 14px;
}

.tb-checkout-wrap #payment .payment_box {
    background: #F6F5F1;
    color: #4C5A6B;
}

.tb-checkout-wrap #payment .payment_box:before {
    border-bottom-color: #F6F5F1;
}

.tb-checkout-wrap #place_order {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: #B0673F;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.tb-checkout-wrap #place_order:hover:not(:disabled) {
    background: #965531;
}

.tb-checkout-wrap #place_order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tb-checkout-includes {
    background: #fff;
    border: 1px solid #DAD5C8;
    border-radius: 2px;
    padding: 22px 28px;
}

.tb-checkout-includes h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #17202B;
}

.tb-checkout-includes ul {
    margin: 0;
    padding-left: 18px;
    color: #4C5A6B;
    font-size: 13px;
    line-height: 1.7;
}

/* Consent Modal */
.tb-consent-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(23, 32, 43, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tb-consent-overlay.tb-consent-open {
    display: flex;
}

.tb-consent-modal {
    background: #fff;
    border: 1px solid #DAD5C8;
    border-radius: 2px;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    padding: 32px 34px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.tb-consent-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #8A95A5;
    cursor: pointer;
    padding: 4px 8px;
}

.tb-consent-close:hover {
    color: #17202B;
}

.tb-consent-modal h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: #17202B;
    margin: 0 0 10px;
}

.tb-consent-intro {
    font-size: 14px;
    color: #4C5A6B;
    margin: 0 0 14px;
    line-height: 1.6;
}

.tb-consent-body {
    background: #F6F5F1;
    border: 1px solid #EFEDE6;
    border-radius: 2px;
    padding: 16px 20px;
    margin-bottom: 18px;
    overflow-wrap: break-word;
    overflow-x: hidden;
    word-break: break-word;
}

.tb-consent-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px auto;
}

.tb-consent-body iframe,
.tb-consent-body table {
    max-width: 100%;
}

.tb-consent-body p {
    font-size: 13px;
    color: #4C5A6B;
    line-height: 1.6;
    margin: 0 0 8px;
}

.tb-consent-body ul {
    margin: 0 0 8px;
    padding-left: 18px;
    font-size: 13px;
    color: #4C5A6B;
    line-height: 1.6;
}

.tb-consent-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

.tb-consent-cancel {
    padding: 12px 18px;
    background: none;
    border: 1px solid #DAD5C8;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #4C5A6B;
    cursor: pointer;
    transition: all 0.2s;
}

.tb-consent-cancel:hover {
    background: #F6F5F1;
}

.tb-consent-confirm {
    padding: 12px 20px;
    background: #B0673F;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.tb-consent-confirm:hover:not(:disabled) {
    background: #965531;
}

.tb-consent-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Overlay */
.tb-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(23, 32, 43, 0.7);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tb-loading-overlay.tb-loading-open {
    display: flex;
}

.tb-loading-modal {
    background: #fff;
    border: 1px solid #DAD5C8;
    border-radius: 2px;
    max-width: 360px;
    width: 100%;
    box-sizing: border-box;
    padding: 36px 32px;
    text-align: center;
}

.tb-loading-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 18px;
    border: 4px solid #EFEDE6;
    border-top-color: #B0673F;
    border-radius: 50%;
    animation: tb-spin 0.8s linear infinite;
}

@keyframes tb-spin {
    to {
        transform: rotate(360deg);
    }
}

.tb-loading-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #17202B;
    margin: 0 0 8px;
}

.tb-loading-sub {
    font-size: 13px;
    color: #4C5A6B;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .tb-loading-modal {
        padding: 28px 20px;
    }
}

@media (max-width: 560px) {
    .tb-consent-modal {
        padding: 24px 20px;
    }

    .tb-consent-actions {
        flex-direction: column-reverse;
    }

    .tb-consent-cancel,
    .tb-consent-confirm {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 992px) {
    .tb-checkout-wrap .woocommerce-checkout {
        display: flex;
        flex-direction: column;
    }

    .tb-checkout-wrap .tb-checkout-left,
    .tb-checkout-wrap .tb-checkout-right-column {
        width: 100%;
    }

    .tb-checkout-wrap .tb-checkout-right-column {
        position: static;
    }
}

/* Closed Registration Inline Block */
.tb-closed-inline {
    background: #fff;
    border: 1px solid #DAD5C8;
    border-radius: 2px;
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 44px;
    text-align: center;
}

.tb-closed-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #F6F5F1;
    border: 1px solid #DAD5C8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B0673F;
}

.tb-closed-icon svg {
    width: 26px;
    height: 26px;
}

.tb-closed-date {
    display: inline-block;
    background: #F6F5F1;
    border: 1px solid #DAD5C8;
    border-radius: 2px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: #B0673F;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tb-closed-actions {
    margin-top: 24px;
}

.tb-closed-actions .tb-closed-button {
    display: inline-block;
    padding: 13px 28px;
    background: #B0673F;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.tb-closed-actions .tb-closed-button:hover {
    background: #965531;
}

.tb-closed-actions .tb-closed-button-secondary {
    display: inline-block;
    margin-left: 10px;
    padding: 12px 24px;
    background: none;
    border: 1px solid #DAD5C8;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #4C5A6B;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.tb-closed-actions .tb-closed-button-secondary:hover {
    background: #F6F5F1;
}

.tb-closed-inline .tb-closed-icon {
    margin-bottom: 20px;
}

.tb-closed-inline h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: #17202B;
    margin: 0 0 12px;
}

.tb-closed-inline .tb-closed-date {
    margin-bottom: 18px;
}

.tb-closed-inline p {
    font-size: 14px;
    color: #4C5A6B;
    line-height: 1.7;
    margin: 0 0 10px;
}

.tb-closed-inline p:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .tb-closed-inline {
        padding: 32px 22px;
    }

    .tb-closed-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .tb-closed-actions .tb-closed-button,
    .tb-closed-actions .tb-closed-button-secondary {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 560px) {
    .tb-form-grid {
        grid-template-columns: 1fr;
    }

    .tb-form-grid .tb-field-full {
        grid-column: auto;
    }

    .tb-form-card {
        padding: 24px 20px;
    }

    .tb-checkout-wrap #order_review {
        padding: 1.5rem;
    }
}