@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== STRIPE ELEMENTS — PREMIUM MODERN CHECKOUT FORM ===== */
.stripe-exact-form-container {
    max-width: 540px;
    margin: 0 auto;
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #30313d;
    text-align: left;
    box-sizing: border-box;
}

/* --- Form Header "Card" --- */
.stripe-exact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}
.stripe-exact-header i {
    font-size: 1.2rem;
    color: #635bff;
}

/* --- Group Label --- */
.stripe-exact-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stripe-exact-group {
    margin-bottom: 16px;
}

/* --- Grouped Border Container --- */
.stripe-exact-box {
    border: 1px solid #e6e6eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0px 1px 1px rgba(0,0,0,0.03), 0px 3px 6px rgba(0,0,0,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.stripe-exact-box:focus-within {
    border-color: #635bff;
    box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.18), 0px 1px 1px rgba(0,0,0,0.03);
}

/* --- Standalone Input (Cardholder name, email) --- */
.stripe-exact-input-single {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #e6e6eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #30313d;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    box-shadow: 0px 1px 1px rgba(0,0,0,0.03), 0px 3px 6px rgba(0,0,0,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.stripe-exact-input-single:focus {
    border-color: #635bff;
    box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.18);
}
.stripe-exact-input-single::placeholder { color: #aab7c4; }

/* --- Inside Box Row --- */
.stripe-exact-row {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    min-height: 48px;
}
.stripe-exact-row:last-child { border-bottom: none; }

/* ---- Card Number Row ---- */
.stripe-exact-cardnum-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e6e6eb;
    min-height: 48px;
    background: #fff;
    width: 100%;
}
.stripe-exact-cardnum-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 6px 0 14px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    color: #30313d;
    background: transparent;
    box-sizing: border-box;
}
.stripe-exact-cardnum-input::placeholder { color: #aab7c4; }

/* Brand logos — small, flat, inline, exactly like Stripe */
.stripe-exact-brand-logos {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0 12px 0 6px;
}
/* Each badge: just the SVG itself, no extra box */
.stripe-exact-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    opacity: 0.9;
    transition: opacity 0.15s;
}
.stripe-exact-brand-badge:hover {
    opacity: 1;
}
.stripe-exact-brand-badge svg {
    display: block;
    overflow: visible;
}

/* --- Standard row input (MM/YY, CVC, address) --- */
.stripe-exact-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    color: #30313d;
    background: transparent;
    box-sizing: border-box;
}
.stripe-exact-input::placeholder { color: #aab7c4; }

/* --- Split 50/50 --- */
.stripe-exact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e6e6eb;
}
.stripe-exact-split:last-child { border-bottom: none; }
.stripe-exact-split-cell {
    position: relative;
    display: flex;
    align-items: center;
}
.stripe-exact-split-cell + .stripe-exact-split-cell {
    border-left: 1px solid #e6e6eb;
}

/* --- CVC icon --- */
.stripe-exact-cvc-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    opacity: 0.6;
}
.stripe-exact-split-cell .stripe-exact-input[name="card_cvv"] {
    padding-right: 38px;
}

/* --- Country Select --- */
.stripe-exact-select {
    width: 100%;
    height: 48px;
    padding: 0 36px 0 14px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    font-family: inherit;
    color: #111827;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}
.stripe-exact-select-wrap {
    position: relative;
    width: 100%;
}
.stripe-exact-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
    font-size: 0.8rem;
}

/* --- Checkboxes --- */
.stripe-exact-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}
.stripe-exact-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: #635bff;
    cursor: pointer;
    flex-shrink: 0;
}

/* --- Phone Number --- */
.stripe-exact-phone-box {
    border: 1px solid #e6e6eb;
    border-radius: 8px;
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    box-shadow: 0px 1px 1px rgba(0,0,0,0.03), 0px 3px 6px rgba(0,0,0,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.stripe-exact-phone-box:focus-within {
    border-color: #635bff;
    box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.18);
}
.stripe-exact-phone-select {
    height: 100%;
    padding: 0 8px 0 12px;
    border: none;
    border-right: 1px solid #e5e7eb;
    outline: none;
    background: #f9fafb;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    box-sizing: border-box;
    flex-shrink: 0;
}
.stripe-exact-phone-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    color: #111827;
    background: transparent;
}
.stripe-exact-phone-input::placeholder { color: #9ca3af; }

/* ===== COUPON CODE — Modern Card Style ===== */
.stripe-exact-coupon-wrap {
    margin-top: 20px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    border: 1.5px dashed #c4b5fd;
    border-radius: 12px;
    padding: 14px 16px;
}
.stripe-exact-coupon-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #635bff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.stripe-exact-coupon-toggle i {
    font-size: 0.95rem;
}
.stripe-exact-coupon-toggle:hover { color: #4f46e5; }
.stripe-exact-coupon-box {
    display: none;
    margin-top: 12px;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}
.stripe-exact-coupon-box.open { display: flex; }
.stripe-exact-coupon-input {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #a5b4fc;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 700;
    color: #1f2937;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.stripe-exact-coupon-input:focus {
    border-color: #635bff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}
.stripe-exact-coupon-input::placeholder {
    color: #a5b4fc;
    font-weight: 500;
    letter-spacing: 1px;
}
.stripe-exact-coupon-btn {
    height: 42px;
    padding: 0 18px;
    background: #635bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s, transform 0.1s;
    letter-spacing: 0.02em;
}
.stripe-exact-coupon-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}
.stripe-exact-coupon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.stripe-exact-coupon-msg {
    font-size: 0.82rem;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}
.stripe-exact-coupon-msg.success {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
}
.stripe-exact-coupon-msg.error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

/* ===== TERMS & CONDITIONS — Clean Modern Block ===== */
.stripe-exact-terms-block {
    margin-top: 20px;
    background: #fafafa;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.stripe-exact-terms-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f5f3ff, #f0fdf4);
    border-bottom: 1px solid #e5e7eb;
}
.stripe-exact-terms-title i {
    color: #635bff;
    font-size: 1rem;
}
.stripe-exact-terms-body {
    max-height: 90px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.65;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}
.stripe-exact-terms-body::-webkit-scrollbar { width: 3px; }
.stripe-exact-terms-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
.stripe-exact-terms-accept {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    padding: 12px 16px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    transition: background 0.15s;
}
.stripe-exact-terms-accept:hover { background: #f9fafb; }
.stripe-exact-terms-accept input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #635bff;
    flex-shrink: 0;
    cursor: pointer;
}

/* ===== SUBMIT BUTTON ===== */
.stripe-exact-submit-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #635bff 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    box-shadow: 0 4px 14px rgba(99, 91, 255, 0.4);
    transition: all 0.2s;
    letter-spacing: 0.02em;
}
.stripe-exact-submit-btn:hover {
    background: linear-gradient(135deg, #5449e8 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 91, 255, 0.45);
}
.stripe-exact-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Disclaimer --- */
.stripe-exact-disclaimer {
    font-size: 0.76rem;
    color: #9ca3af;
    line-height: 1.55;
    text-align: center;
    margin-top: 14px;
}

/* --- Footer --- */
.stripe-exact-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.78rem;
    color: #9ca3af;
}
.stripe-exact-footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s;
}
.stripe-exact-footer a:hover { color: #6b7280; }
.stripe-exact-powered {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: opacity 0.15s;
}
.stripe-exact-powered:hover { opacity: 0.75; }
.stripe-exact-powered svg {
    height: 16px;
    width: auto;
    fill: #635bff;
}
