/**
 * Ajay Kumar Thakur (AKT)
 * Luxury Split-Card Razorpay Checkout Modal
 * Pixel-perfect implementation matching reference design
 */

.akt-checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(3, 14, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-y: auto;
}

.akt-checkout-modal.active {
    display: flex;
}

.akt-checkout-card {
    background: #ffffff;
    border-radius: 24px;
    width: min(880px, 96vw);
    max-height: 94vh;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
    position: relative;
    display: flex;
    flex-direction: row;
    animation: aktModalCardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes aktModalCardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================================
   LEFT COLUMN - LUXURY DARK BRAND & TRUST PANEL (38%)
======================================================== */
.akt-modal-left-col {
    flex: 0 0 38%;
    max-width: 38%;
    background: linear-gradient(172deg, #05261d 0%, #083c2e 50%, #031c15 100%);
    padding: 34px 28px 30px 28px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top Brand Logo */
.akt-modal-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
    min-height: 48px;
}

.akt-modal-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    max-width: 100%;
}

.akt-modal-brand-dynamic-img {
    max-height: 48px;
    max-width: 190px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.akt-modal-brand-link:hover .akt-modal-brand-dynamic-img {
    transform: scale(1.02);
}

.akt-modal-brand-fallback {
    display: flex;
    flex-direction: column;
}

.akt-brand-title {
    font-size: 24px;
    font-weight: 900;
    color: #d4a34b;
    letter-spacing: 0.5px;
    line-height: 1;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.akt-brand-sub {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-top: 3px;
    letter-spacing: 0.3px;
}

/* Razorpay Trust Badge Pill */
.akt-modal-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #e5b055;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.akt-modal-trust-pill i,
.akt-modal-trust-pill svg {
    color: #e5b055;
    flex-shrink: 0;
}

/* Big Heading */
.akt-modal-heading {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.akt-text-gold {
    color: #e5b055;
}

.akt-modal-lead {
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

/* 4 Feature Items */
.akt-modal-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.akt-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.akt-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #d4a34b;
    background: rgba(7, 43, 32, 0.6);
    color: #d4a34b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.akt-feature-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.akt-feature-desc {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-top: 2px;
}

/* Background Wavy Gold Guilloche Lines */
.akt-modal-waves {
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 160px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

.akt-modal-waves svg {
    width: 100%;
    height: 100%;
}

/* ========================================================
   RIGHT COLUMN - CLEAN WHITE CHECKOUT FORM PANEL (62%)
======================================================== */
.akt-modal-right-col {
    flex: 0 0 62%;
    max-width: 62%;
    background: #ffffff;
    padding: 30px 32px;
    position: relative;
    overflow-y: auto;
    max-height: 94vh;
}

/* Circular Close Button */
.akt-checkout-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #475569;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.akt-checkout-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.06);
}

/* Section Header Rows */
.akt-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.akt-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef7f4;
    color: #065f46;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.akt-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.akt-section-sub {
    font-size: 11.5px;
    color: #64748b;
    margin: 2px 0 0 0;
}

/* Product Preview Box */
.akt-product-preview-box {
    border: 1.5px solid #edf2f7;
    border-radius: 14px;
    padding: 12px 16px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.akt-preview-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.akt-preview-thumb {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    background: #05261d;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.akt-preview-info {
    min-width: 0;
}

.akt-preview-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.akt-preview-desc {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.akt-preview-right {
    text-align: right;
    flex-shrink: 0;
}

.akt-amount-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}

.akt-amount-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.3px;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1;
}

/* Form Fields */
.akt-form-field {
    margin-bottom: 14px;
}

.akt-field-label {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    display: block;
}

.akt-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.2s ease;
    height: 44px;
    overflow: hidden;
}

.akt-input-group:focus-within {
    border-color: #d4a34b;
    box-shadow: 0 0 0 3px rgba(212, 163, 75, 0.16);
}

.akt-input-icon {
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
}

.akt-input-text {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 14px 10px 0;
    font-size: 13.5px;
    color: #0f172a;
    background: transparent;
    font-weight: 500;
}

.akt-input-text::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Phone Prefix with Flag */
.akt-phone-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
    padding-right: 10px;
    background: #ffffff;
    flex-shrink: 0;
    user-select: none;
}

.akt-flag-icon {
    display: inline-flex;
    align-items: center;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.akt-arrow-sm {
    font-size: 8px;
    color: #64748b;
}

.akt-dial-code {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.akt-prefix-divider {
    width: 1px;
    height: 22px;
    background: #e2e8f0;
    margin-left: 4px;
}

.akt-phone-input {
    padding-left: 10px !important;
}

/* CTA Golden Proceed to Pay Button */
.akt-btn-rzp-submit {
    background: linear-gradient(135deg, #caa048 0%, #b88528 50%, #a2721e 100%);
    color: #ffffff !important;
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(184, 133, 40, 0.35);
    margin-top: 18px;
    text-transform: none;
}

.akt-btn-rzp-submit:hover {
    background: linear-gradient(135deg, #d8ac4f 0%, #c4902f 50%, #af7c22 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 12px 28px rgba(184, 133, 40, 0.45);
}

.akt-btn-rzp-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* Trust Sublines */
.akt-trust-subline {
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    color: #475569;
    font-weight: 500;
}

/* Payment Gateways Card */
.akt-gateways-container {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    background: #fafbfc;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 8px;
}

.akt-gw-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    user-select: none;
}

.akt-gw-rzp {
    color: #0c2340;
    font-weight: 800;
}

.mc-circles {
    display: inline-flex;
    align-items: center;
    width: 26px;
    height: 16px;
    position: relative;
}

.mc-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.mc-red {
    background: #eb001b;
}

.mc-yellow {
    background: #f79e1b;
    margin-left: -7px;
    mix-blend-mode: multiply;
}

/* Bottom Guarantee */
.akt-bottom-guarantee {
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
}

/* ========================================================
   RESPONSIVE DESIGN (MOBILE & TABLETS <= 820px)
======================================================== */
@media (max-width: 820px) {
    .akt-checkout-card {
        flex-direction: column;
        width: min(520px, 95vw);
        max-height: 92vh;
        overflow-y: auto;
    }

    .akt-modal-left-col {
        flex: none;
        max-width: 100%;
        padding: 24px 20px;
    }

    .akt-modal-brand-header {
        margin-bottom: 16px;
    }

    .akt-modal-brand-dynamic-img {
        max-height: 42px;
        max-width: 170px;
    }

    .akt-modal-heading {
        font-size: 22px;
    }

    .akt-modal-features {
        gap: 12px;
    }

    .akt-modal-right-col {
        flex: none;
        max-width: 100%;
        padding: 24px 20px;
        overflow-y: visible;
        max-height: none;
    }

    .akt-product-preview-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .akt-preview-right {
        text-align: left;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px dashed #e2e8f0;
        padding-top: 8px;
    }
}
