/* Color Scheme - Fazaa Colors */
:root {
    --primary-gold: #C4A747;
    --primary-red: #D32F2F;
    --light-bg: #F5E6D3;
    --white: #FFFFFF;
    --dark-text: #333333;
    --light-text: #666666;
    --border-color: #E0D5C7;
    --success-color: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #B8942E 100%);
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Family Image Section */
.family-image-section {
    width: 100%;
    background-color: var(--light-bg);
    padding: 0;
    margin: 0;
}

.family-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
}

.header-container {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
}

.header-left {
    display: flex;
    gap: 15px;
    align-items: center;
    order: 1;
}

.menu-btn, .language-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.menu-btn:hover, .language-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.header-center {
    flex: 0 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #B8942E 100%);
    padding: 10px 20px;
    border-radius: 8px;
    margin-right: auto;
    display: none;
}

.fazaa-logo-header {
    height: 55px;
    width: auto;
    max-width: 180px;
    filter: none;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.logo {
    height: 50px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: bold;
    font-size: 18px;
    margin-left: 0;
    order: 3;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.header-text {
    color: var(--white);
    font-weight: bold;
}

/* Family Section */
.family-section {
    width: 100%;
    background: var(--light-bg);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.family-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Main Content - Full Page */
.main-content-full {
    width: 100%;
    min-height: calc(100vh - 200px);
    background-color: var(--white);
    padding: 0;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    min-height: 100vh;
}

/* Page Navigation */
.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

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

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    color: var(--primary-gold);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
}

.page-subtitle {
    color: var(--light-text);
    font-size: 15px;
    text-align: center;
    margin-bottom: 10px;
}

/* Form - Full Page */
.form-full-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: var(--white);
    padding: 40px 30px 60px;
    border-radius: 0;
    box-shadow: none;
    border-top: 6px solid var(--primary-gold);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 6px;
}

.form-group label {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
#nationalityDisplay {
    padding: 13px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    height: 50px;
    display: flex;
    align-items: center;
    background-color: #fafafa;
}

.form-group select {
    height: 48px;
    padding: 12px;
}

.nationality-wrapper {
    position: relative;
    width: 100%;
    height: 48px;
}

.nationality-wrapper #nationalityDisplay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.nationality-wrapper select {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--white);
    color: var(--dark-text);
    cursor: pointer;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(196, 167, 71, 0.15);
    background-color: #fff;
}

/* Date Inputs */
.date-inputs {
    display: flex;
    gap: 10px;
}

.date-inputs input {
    flex: 1;
    padding: 12px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    text-align: center;
    font-weight: 600;
}

.date-inputs input:focus {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 5px rgba(196, 167, 71, 0.3) !important;
}

/* Select Dropdown Styling */
.form-group select {
    background-color: var(--white);
    height: 48px !important;
    color: var(--dark-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4A747' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 1.5em;
    padding-left: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    min-width: 150px;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-gold);
}

.radio-option span {
    font-weight: 500;
    color: var(--dark-text);
    font-size: 14px;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fafafa;
    height: 50px;
}

.phone-input-group:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 0 5px rgba(196, 167, 71, 0.3);
}

.phone-prefix {
    background-color: #f5f5f5;
    padding: 12px 15px;
    font-weight: 600;
    color: var(--dark-text);
    white-space: nowrap;
    border-right: 1px solid var(--border-color);
    font-size: 14px;
}

.phone-input-group input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed var(--primary-gold);
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(196, 167, 71, 0.05);
}

.file-upload:hover {
    background-color: rgba(196, 167, 71, 0.1);
    border-color: var(--primary-red);
}

.file-upload input[type="file"] {
    display: none;
}

.upload-text {
    color: var(--light-text);
    font-size: 14px;
}

/* Section Title */
.section-title {
    color: var(--primary-gold);
    font-size: 18px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-gold);
}

/* Payment Info */
.payment-info {
    background: linear-gradient(135deg, rgba(196, 167, 71, 0.1) 0%, rgba(211, 47, 47, 0.05) 100%);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-gold);
}

.amount-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.amount-label {
    font-weight: 600;
    color: var(--dark-text);
}

.amount-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-red);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-next, .btn-back, .btn-submit {
    padding: 16px 50px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 54px;
    margin-top: 40px;
    letter-spacing: 0.5px;
}

.btn-next, .btn-submit {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #B8942E 100%);
    color: var(--white);
}

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 167, 71, 0.4);
}

.btn-next:active, .btn-submit:active {
    transform: translateY(0);
}

.btn-back {
    background: var(--border-color);
    color: var(--dark-text);
}

.btn-back:hover {
    background: #D0C5B9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-in;
}

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

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

.modal-content h2 {
    color: var(--primary-gold);
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-content p {
    color: var(--light-text);
    margin-bottom: 10px;
    font-size: 14px;
}

.btn-close {
    background: var(--primary-gold);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: #B8942E;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .form-full-page {
        padding: 20px 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-title {
        font-size: 24px;
    }

    .amount-box {
        flex-direction: column;
        gap: 10px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-next, .btn-back, .btn-submit {
        padding: 12px 20px;
        font-size: 14px;
    }

    .header-container {
        padding: 0 10px;
    }

    .date-inputs {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px;
    }

    .main-content-full {
        padding: 0;
    }

    .form-full-page {
        padding: 15px 10px;
    }

    .page-title {
        font-size: 20px;
    }

    .btn-next, .btn-back, .btn-submit {
        padding: 10px 15px;
        font-size: 14px;
    }

    .section-title {
        font-size: 16px;
    }

    .date-inputs input {
        font-size: 12px !important;
    }
}


/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #B8942E 100%);
    color: var(--white);
    padding: 30px 20px;
    margin-top: 50px;
    text-align: center;
    border-top: 3px solid var(--primary-gold);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.footer-links .separator {
    color: var(--white);
    opacity: 0.7;
}

.footer-copyright {
    font-size: 13px;
    opacity: 0.95;
}

.footer-copyright p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 20px 15px;
        margin-top: 30px;
    }

    .footer-links {
        font-size: 12px;
    }

    .footer-links a {
        padding: 0 5px;
    }

    .footer-copyright {
        font-size: 11px;
    }
}


/* Summary Section Styles */
.summary-section {
    background-color: #fafafa;
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item label {
    font-weight: 600;
    color: var(--dark-text);
    flex: 0 0 40%;
}

.summary-value {
    color: var(--primary-gold);
    font-weight: 600;
    text-align: right;
    flex: 1;
}

.summary-item.summary-amount {
    background-color: var(--primary-gold);
    color: var(--white);
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.summary-item.summary-amount label {
    color: var(--white);
}

.summary-item.summary-amount .summary-value {
    color: var(--white);
}

.summary-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), transparent);
    margin: 30px 0;
}

.card-section {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Responsive Summary */
@media (max-width: 768px) {
    .summary-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }

    .summary-item label {
        margin-bottom: 5px;
        flex: 1;
    }

    .summary-value {
        text-align: left;
        width: 100%;
    }

    .summary-item.summary-amount {
        flex-direction: row;
        justify-content: space-between;
    }
}


/* Accepted Cards Section */
.accepted-cards-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: var(--white);
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.accepted-cards-image {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    display: inline-block;
    background-color: var(--white);
}

/* ===== Waybill Preview Button ===== */
.waybill-btn-container {
    text-align: center;
    margin: 18px 0 10px 0;
}

.btn-ep-logo {
    height: 28px;
    width: auto;
    vertical-align: middle;
    margin-left: 8px;
    filter: brightness(0) invert(1);
}

.btn-waybill-preview {
    background: linear-gradient(135deg, var(--primary-gold), #a8893a);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(196,167,71,0.35);
    letter-spacing: 0.5px;
}

.btn-waybill-preview:hover {
    background: linear-gradient(135deg, #a8893a, var(--primary-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(196,167,71,0.5);
}

/* ===== Waybill Preview Box ===== */
.waybill-preview {
    border: 2px solid var(--primary-gold);
    border-radius: 14px;
    background: #fffdf5;
    margin: 16px 0 0 0;
    padding: 0;
    overflow: hidden;
    animation: fadeInDown 0.4s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Waybill Header */
.waybill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-gold);
    padding: 14px 20px;
    gap: 10px;
}

.waybill-logo-left,
.waybill-logo-right {
    flex: 0 0 auto;
}

.fazaa-waybill-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.ep-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
}

.waybill-center-text {
    flex: 1;
    text-align: center;
}

.waybill-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Waybill Divider */
.waybill-divider {
    height: 3px;
    background: linear-gradient(to right, var(--primary-gold), #e8d5a0, var(--primary-gold));
}

/* Waybill Body */
.waybill-body {
    padding: 16px 24px;
    background: #fffdf5;
}

.waybill-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px solid #f0e8d0;
    gap: 12px;
}

.waybill-item:last-child {
    border-bottom: none;
}

.waybill-label {
    font-weight: bold;
    color: var(--primary-gold);
    font-size: 0.9rem;
    min-width: 110px;
}

.waybill-value {
    color: var(--dark-text);
    font-size: 0.95rem;
    text-align: left;
    flex: 1;
}

.waybill-address .waybill-value {
    text-align: left;
    line-height: 1.5;
}

/* Barcode */
.waybill-barcode {
    text-align: center;
    padding: 14px 0 6px 0;
}

.barcode-lines {
    height: 40px;
    background: repeating-linear-gradient(
        to right,
        #333 0px, #333 2px,
        #fff 2px, #fff 5px,
        #333 5px, #333 8px,
        #fff 8px, #fff 12px,
        #333 12px, #333 15px,
        #fff 15px, #fff 20px,
        #333 20px, #333 22px,
        #fff 22px, #fff 26px
    );
    border-radius: 3px;
    margin-bottom: 6px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.barcode-number {
    font-family: monospace;
    font-size: 0.85rem;
    color: #555;
    letter-spacing: 3px;
}

/* Waybill Status Section */
.waybill-status-section {
    background: #f9f4e8;
    padding: 14px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-time {
    color: #2e7d32;
    font-size: 0.95rem;
    font-weight: 600;
}

.order-status {
    color: #b45309;
    font-size: 0.92rem;
    font-weight: 600;
}

/* ===== Payment Methods Section ===== */
.payment-methods-section {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-methods-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: right;
}

/* Apple Pay Button */
.btn-apple-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: #333;
    border: 2px solid #C9A84C;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-apple-pay:hover {
    background: #fdf8ec;
    border-color: #a07830;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.apple-icon {
    width: 24px;
    height: 24px;
    fill: #333;
}

/* Apple Pay Error Message */
.apple-pay-error {
    background: #fff0f0;
    border: 2px solid #e53e3e;
    border-radius: 10px;
    padding: 14px 18px;
    color: #c53030;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.3s ease;
}

/* Credit/Debit Card Button */
.btn-card-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: #333;
    border: 2px solid #C9A84C;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    direction: rtl;
}

.btn-card-payment:hover {
    background: #fdf8ec;
    border-color: #a07830;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.card-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.visa-icon {
    width: 40px;
    height: 26px;
    border-radius: 4px;
}

.mc-icon {
    width: 36px;
    height: 26px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Section Animation */
#cardSection {
    animation: slideDown 0.4s ease;
}

/* ===== Stripe-style Card Section ===== */
.stripe-payment-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0 12px 0;
    text-align: left;
    direction: ltr;
}

.stripe-card-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    direction: ltr;
}

.stripe-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.stripe-card-icon {
    width: 22px;
    height: 22px;
}

.stripe-card-label {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.stripe-field-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    margin-top: 10px;
    font-weight: 500;
}

.stripe-card-number-wrapper {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 6px 6px 0 0;
    background: #fff;
    display: flex;
    align-items: center;
}

.stripe-card-number {
    border: none !important;
    border-radius: 6px 6px 0 0 !important;
    padding-left: 12px !important;
    padding-right: 140px !important;
    height: 44px;
    font-size: 15px;
    width: 100%;
    outline: none;
    box-shadow: none !important;
    background: transparent;
    direction: ltr;
}

.stripe-card-logos {
    position: absolute;
    right: 8px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.stripe-logo-visa,
.stripe-logo-mc,
.stripe-logo-amex,
.stripe-logo-union {
    width: 38px;
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.stripe-row {
    display: flex;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.stripe-half {
    border: none !important;
    border-radius: 0 !important;
    height: 44px;
    font-size: 15px;
    flex: 1;
    outline: none;
    box-shadow: none !important;
    padding: 0 12px;
    background: transparent;
    direction: ltr;
}

.stripe-row .stripe-half:first-child {
    border-right: 1px solid #ccc !important;
}

.stripe-cvc-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.stripe-cvc-wrapper .stripe-half {
    width: 100%;
    padding-right: 40px !important;
}

.stripe-cvc-icon {
    position: absolute;
    right: 10px;
    width: 26px;
    height: 17px;
    pointer-events: none;
}

.stripe-full {
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    height: 44px;
    font-size: 15px;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    outline: none;
    margin-top: 4px;
    direction: ltr;
    background: #fff;
}

.stripe-full:focus,
.stripe-half:focus,
.stripe-card-number:focus {
    border-color: #4F46E5 !important;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15) !important;
}

.stripe-save-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 12px;
    background: #fff;
    direction: ltr;
}

.stripe-save-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #1a1a1a;
}

.stripe-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #4F46E5;
    cursor: pointer;
}

.stripe-save-sub {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

/* ===== Validation Error Styles ===== */
.field-error {
    border: 2px solid #D32F2F !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15) !important;
    animation: fieldShake 0.35s ease-in-out;
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
