/* ============================================
   THE BALESKY EXPERIENCE - Checkbot (Payment) Stylesheet
   Standalone CSS for checkbot.html
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --gold: #c2aa57;
    --gold-dark: #a07e2b;
    --gold-light: #debb5f;
    --black: #000000;
    --dark: #111111;
    --dark-bg: #0a0a0a;
    --white: #ffffff;
    --gray: #999999;
    --light-gray: #dddddd;
    --text-gray: #b0b0b0;
    --font-primary: 'Playfair Display', serif;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Checkout Page --- */
.checkout-page {
    background: var(--dark-bg);
    padding: 60px 0 80px;
    min-height: 60vh;
}

.checkout-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.checkout-form-wrapper {
    flex: 2;
}

.checkout-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--white);
}

.checkout-form-wrapper h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--gold);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: var(--white);
    font-size: 15px;
    font-family: var(--font-primary);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.checkout-form .form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--white);
    font-size: 15px;
    font-family: var(--font-primary);
    transition: border-color 0.3s;
}

.checkout-form .form-control:focus {
    outline: none;
    border-color: var(--gold);
}

.checkout-form .form-control::placeholder {
    color: rgba(255,255,255,0.35);
}

.checkout-form select.form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: var(--white);
    padding: 10px 12px;
    font-size: 14px;
    width: 100%;
    font-family: var(--font-primary);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.checkout-form select.form-control option {
    background: #1a1a1a;
    color: #fff;
}

.checkout-form select.form-control:focus {
    outline: none;
    border-color: var(--gold);
}

.required {
    color: #e74c3c;
    font-size: 12px;
}

.field-error {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.form-control.invalid {
    border-color: #e74c3c;
}

.form-control.valid {
    border-color: #27ae60;
}

/* --- Phone --- */
.phone-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.phone-code-select {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    flex-shrink: 0;
    font-size: 13px;
    padding: 8px 4px;
}

.phone-row .form-control[type="tel"] {
    flex: 1;
}

/* --- Amount Selection --- */
.amount-section {
    margin-bottom: 30px;
}

.amount-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--white);
}

.amount-preset-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.amount-preset-btn {
    flex: 1;
    min-width: 80px;
    padding: 14px 10px;
    background: transparent;
    border: 2px solid rgba(194,170,87,0.4);
    border-radius: 8px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.amount-preset-btn:hover {
    background: rgba(194,170,87,0.1);
    border-color: var(--gold);
}

.amount-preset-btn.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.amount-custom-wrapper {
    position: relative;
}

.amount-custom-wrapper .currency-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 18px;
    font-weight: 600;
    pointer-events: none;
}

.amount-custom-wrapper input {
    padding-left: 32px !important;
}

/* --- Card Icons --- */
.card-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    align-items: center;
}

.card-icons,
.card-icons img,
.card-icons svg {
    filter: none !important;
    mix-blend-mode: normal !important;
}

.card-icons .card-icon-svg {
    width: 44px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-icons .card-icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.card-icons .card-icon-svg.active {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Card Number Wrapper & Floating Detected Icon --- */
.card-number-wrapper {
    position: relative;
}

.card-number-wrapper .form-control {
    padding-right: 60px;
}

.card-detected-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.card-detected-icon svg {
    display: none;
    height: 20px;
    width: auto;
}

.card-detected-icon[data-type="visa"] .dv-visa,
.card-detected-icon[data-type="mastercard"] .dv-mastercard,
.card-detected-icon[data-type="amex"] .dv-amex,
.card-detected-icon[data-type="discover"] .dv-discover {
    display: block;
}

/* --- Coupon --- */
.coupon-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.coupon-row input {
    flex: 1;
}

.coupon-row .btn-apply {
    padding: 14px 24px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.coupon-row .btn-apply:hover {
    background: rgba(194,170,87,0.1);
}

.coupon-message {
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.coupon-message.success {
    color: #2ecc71;
    display: block;
}

.coupon-message.error {
    color: #e74c3c;
    display: block;
}

/* --- Order Summary --- */
.checkout-order-summary {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px;
    position: sticky;
    top: 120px;
}

.checkout-order-summary h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--white);
    border-bottom: none;
    padding-bottom: 0;
}

.checkout-item-single {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-item-single .item-label {
    color: var(--text-gray);
    font-size: 15px;
}

.checkout-item-single .item-value {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-summary-row.total {
    border-bottom: none;
    padding-top: 15px;
    margin-top: 5px;
    border-top: 2px solid rgba(255,255,255,0.15);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.cart-summary-row .discount {
    color: #2ecc71;
}

.cart-summary-row .free-shipping {
    color: #2ecc71;
    font-size: 13px;
}

.btn-place-order {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 25px;
    transition: all 0.3s;
}

.btn-place-order:hover {
    background: var(--gold-dark);
}

/* --- Order Confirmation --- */
.order-confirmation {
    display: none;
    text-align: center;
    padding: 60px 0;
}

.order-confirmation.active {
    display: block;
}

.order-confirmation .check-icon {
    width: 80px;
    height: 80px;
    background: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.order-confirmation .check-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.order-confirmation h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--white);
}

.order-confirmation p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.order-confirmation .order-number {
    font-size: 18px;
    color: var(--gold);
    font-weight: 700;
    margin: 20px 0;
}

.order-confirmation .order-details {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    margin: 25px auto;
    text-align: left;
}

.order-confirmation .order-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.order-confirmation .order-details .detail-row:last-child {
    border-bottom: none;
}

.order-confirmation .order-details .detail-row .label {
    color: var(--white);
}

/* --- Buttons --- */
.btn-book-now {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-book-now:hover {
    background: var(--gold-dark);
    color: var(--white);
}

/* --- Processing Spinner --- */
.processing-overlay {
    display: none;
    text-align: center;
    padding: 60px 0;
}

.processing-overlay.active {
    display: block;
}

.apple-pay-logo {
    margin: 0 auto 30px;
    animation: fadeInUp 0.5s ease;
}

.apple-pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #000;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 14px 40px;
    font-size: 22px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.5px;
}

.apple-pay-badge .apple-icon {
    width: 20px;
    height: 24px;
    fill: white;
}

.processing-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-overlay h2 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 10px;
}

.processing-overlay p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

/* --- Verification Code Section --- */
.verification-section {
    display: none;
    text-align: center;
    padding: 60px 0;
}

.verification-section.active {
    display: block;
}

.verification-section .verify-icon {
    width: 70px;
    height: 70px;
    background: rgba(194,170,87,0.15);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.verification-section .verify-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--gold);
}

.verification-section h2 {
    font-size: 28px;
    color: var(--white);
    margin-bottom: 10px;
}

.verification-section p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.verification-section .code-note {
    background: rgba(194,170,87,0.1);
    border: 1px solid rgba(194,170,87,0.3);
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.verification-input-single {
    margin-bottom: 20px;
}

.verify-code-field {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 3px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font-primary);
    transition: border-color 0.3s;
}

.verify-code-field:focus {
    outline: none;
    border-color: var(--gold);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verify-message {
    font-size: 14px;
    margin-bottom: 20px;
    min-height: 20px;
}

.verify-message.error {
    color: #e74c3c;
}

.verify-message.success {
    color: #2ecc71;
}

.btn-verify {
    display: inline-block;
    padding: 14px 40px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-verify:hover {
    background: var(--gold-dark);
}

.btn-resend {
    display: inline-block;
    margin-top: 20px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 14px;
    font-family: var(--font-primary);
    cursor: pointer;
    text-decoration: underline;
}

.btn-resend:hover {
    color: var(--gold-light);
}

/* ============================================
   LIGHT THEME: CHECKBOT PAGE
   ============================================ */

body.light-theme-checkout .checkout-page {
    background: #F7F5EF;
}

body.light-theme-checkout .amount-section h2 {
    color: #272629;
}

body.light-theme-checkout .amount-preset-btn {
    border-color: rgba(194,170,87,0.5);
    color: var(--gold);
}

body.light-theme-checkout .amount-preset-btn:hover {
    background: rgba(194,170,87,0.08);
}

body.light-theme-checkout .amount-preset-btn.active {
    background: var(--gold);
    color: #fff;
}

body.light-theme-checkout .amount-custom-wrapper .currency-prefix {
    color: #999;
}

body.light-theme-checkout .checkout-form-wrapper h2 {
    color: #272629;
}

body.light-theme-checkout .checkout-form-wrapper h3 {
    color: var(--gold);
    border-bottom: 1px solid #f1f1f5;
}

body.light-theme-checkout .form-group label {
    color: #555;
}

body.light-theme-checkout .checkout-form .form-control {
    background: #fff;
    border: 1px solid rgba(190, 158, 74, 0.5);
    color: #333;
}

body.light-theme-checkout .checkout-form .form-control::placeholder {
    color: #cfced2;
}

body.light-theme-checkout .checkout-form .form-control:focus {
    border-color: #be9e4a;
    box-shadow: 0 0 0 1px #be9e4a;
}

body.light-theme-checkout .checkout-form select.form-control {
    background-color: #fff;
    border: 1px solid rgba(190, 158, 74, 0.5);
    color: #333;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px auto !important;
}

body.light-theme-checkout .checkout-form select.form-control option {
    background: #fff;
    color: #333;
}

body.light-theme-checkout .checkout-form select.form-control:focus {
    border-color: #be9e4a;
    box-shadow: 0 0 0 1px #be9e4a;
}

body.light-theme-checkout .phone-code-select {
    background-color: #fff;
    color: #333;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: right 4px center !important;
    background-size: 10px auto !important;
}

body.light-theme-checkout .checkout-order-summary {
    background: #fff;
    border: 1px solid #f1f1f5;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.051);
}

body.light-theme-checkout .checkout-order-summary h3 {
    color: #272629;
    border-bottom: none;
    padding-bottom: 0;
}

body.light-theme-checkout .checkout-item-single .item-label {
    color: #555;
}

body.light-theme-checkout .checkout-item-single .item-value {
    color: #272629;
}

body.light-theme-checkout .coupon-row .btn-apply {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

body.light-theme-checkout .coupon-row .btn-apply:hover {
    background: var(--gold-dark);
}

body.light-theme-checkout .card-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

body.light-theme-checkout .card-icons .card-icon-svg {
    width: 44px;
    height: 28px;
}

body.light-theme-checkout .card-icons .card-icon-svg.active {
    transform: scale(1.15);
}

body.light-theme-checkout .card-icons .card-icon-svg.card-icon-visa.active svg {
    filter: drop-shadow(0 0 8px rgba(26, 31, 113, 0.5));
}

body.light-theme-checkout .card-icons .card-icon-svg.card-icon-maestro.active svg {
    filter: drop-shadow(0 0 8px rgba(235, 0, 27, 0.5));
}

body.light-theme-checkout .card-icons .card-icon-svg.card-icon-amex.active svg {
    filter: drop-shadow(0 0 8px rgba(0, 111, 207, 0.5));
}

body.light-theme-checkout .card-icons .card-icon-svg.card-icon-discover.active svg {
    filter: drop-shadow(0 0 8px rgba(255, 96, 0, 0.5));
}

body.light-theme-checkout .verification-section h2 {
    color: #272629;
}

body.light-theme-checkout .verification-section p {
    color: #555;
}

body.light-theme-checkout .verify-code-field {
    background: #fff;
    border: 2px solid rgba(190, 158, 74, 0.5);
    color: #333;
}

body.light-theme-checkout .order-confirmation h2 {
    color: #272629;
}

body.light-theme-checkout .order-confirmation p {
    color: #555;
}

body.light-theme-checkout .order-confirmation .order-details .detail-row .label {
    color: #555;
}

/* Processing/Loading Modal - Light Theme Fixes */
body.light-theme-checkout .processing-overlay h2 {
    color: #272629 !important;
}

body.light-theme-checkout .processing-overlay p {
    color: #555555 !important;
}

body.light-theme-checkout .processing-spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--gold);
}

body.light-theme-checkout .apple-pay-badge {
    border-color: rgba(0, 0, 0, 0.2);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .checkout-grid {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}