/* Global Box Sizing */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
}

/* Enhanced Cart Card Styles */
.cart-option {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

}

.cart-option:hover {
    border-color: #047857;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Featured Cart Styling */
.cart-option.featured {
    background: linear-gradient(145deg, #ffffff 0%, #fef7ed 100%);
    border: 3px solid #d4a574;
    box-shadow: 0 4px 6px -1px rgba(212, 165, 116, 0.2);
    position: relative;
}

.cart-option.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4a574 0%, #f59e0b 100%);
    border-radius: 20px 20px 0 0;
}

/* Opal Shine Animation for Featured Cart */
.cart-option.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: opalShine 3s infinite;
}

@keyframes opalShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Cart Main Content Layout */
.cart-main-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;

}

/* Cart Left Section */
.cart-left-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Cart Image */
.cart-image {
    width: 160px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 3px solid #f8fafc;
}

.cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cart Info */
.cart-info {
    flex: 1;
    min-width: 0;
    margin-top: 0;
    padding-top: 0;
}

.cart-info h3 {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

/* Desktop and Mobile Title Classes */
.cart-info .desktop-title {
    display: block !important;
}

.cart-info .mobile-title {
    display: none !important;
}

/* Force override any conflicting styles */
#step2 .cart-info .desktop-title {
    display: block !important;
}

#step2 .cart-info .mobile-title {
    display: none !important;
}

@media (max-width: 767px) {
    .cart-info .desktop-title {
        display: none !important;
    }
    
    .cart-info .mobile-title {
        display: block !important;
    }
    
    #step2 .cart-info .desktop-title {
        display: none !important;
    }
    
    #step2 .cart-info .mobile-title {
        display: block !important;
    }
}

/* Cart Features */
.cart-features {
    margin-top: 1.5rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.6);
    transition: all 0.3s ease;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Force override any conflicting styles */
#step2 .feature-list li {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.feature-list li i {
    color: #047857;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Rental Terms */
.rental-terms {
    margin-top: 2rem;
    text-align: center;
}

.terms-text {
    display: inline-block;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
    padding: 1rem 1.5rem;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 100%;
}

/* Force override any conflicting styles */
#step2 .terms-text {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Cart Right Section */
.cart-right-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    align-self: flex-start;
    justify-self: end;
}

/* Select Button */
.select-btn {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
    min-width: 160px;
}

.select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.35);
    background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
}

/* Recommended Badge */
.recommended-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, #d4a574 0%, #f59e0b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
    z-index: 3;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommended-badge i {
    color: #ffffff;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cart-left-section {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .cart-image {
        width: 140px;
        height: 105px;
    }
    
    .cart-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .feature-list li {
        justify-content: center;
        text-align: center;
    }
    
    .cart-right-section {
        align-items: center;
    }
}

@media (max-width: 767px) {
    .cart-option {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .cart-info h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2;
    }
    
    .feature-list {
        justify-items: start;
    }
    
    .feature-list li {
        justify-content: flex-start;
        text-align: left;
    }
    
    .feature-list {
        justify-content: center;
    }
    
    .feature-list li {
        text-align: center;
    }
    
    .terms-text {
        white-space: normal;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }
    
    .select-btn {
        margin: 0 auto;
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .cart-option {
        padding: 1.5rem;
    }
    
    .cart-image {
        width: 120px;
        height: 90px;
    }
    
    .cart-info h3 {
        font-size: 1.125rem;
    }
    
    .feature-list li {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .terms-text {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .select-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        min-width: 120px;
    }
}

/* Step 2 Layout Styles */
.step2-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
}

.step2-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step2-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.rental-summary {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.rental-summary h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.125rem;
    color: #047857;
}

.summary-item span:first-child {
    color: #64748b;
    font-weight: 500;
}

.summary-item span:last-child {
    color: #1e293b;
    font-weight: 600;
}

/* Upgrade message styling */
.summary-item.upgrade-message {
    border-bottom: none;
    padding: 0.5rem 0;
}

.summary-item.upgrade-message span {
    color: #047857;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: right;
    width: 100%;
}

/* Cart Selection Container */
.cart-selection {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
}

/* Force override any conflicting styles */
#step2 .cart-selection {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
}

#step2 .cart-option {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Responsive Step 2 Layout */
@media (max-width: 1024px) {
    .step2-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step2-right {
        position: static;
        order: -1;
    }
}

@media (max-width: 1200px) {
    .step2-layout {
        grid-template-columns: 350px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .step2-layout {
        padding: 1rem;
        gap: 1.5rem;
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .step2-left {
        order: 2;
    }
    
    .step2-right {
        order: 1;
        position: static;
    }
    
    .rental-summary {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .rental-summary h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .summary-item {
        padding: 0.75rem 0;
        font-size: 0.875rem;
    }
    
    .summary-item:last-child {
        font-size: 1rem;
    }
    
    /* Improve cart cards on mobile */
    .cart-option {
        margin-bottom: 1.5rem;
        width: 100%;
        padding: 1.5rem;
        box-sizing: border-box;
    }
    
    .cart-main-content {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .cart-left-section {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .cart-image {
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .cart-image img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 12px !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Force full image display on mobile */
    #step2 .cart-image img,
    .cart-option .cart-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Fix image container to prevent cropping */
    .cart-image {
        margin-bottom: 1rem;
        width: 100% !important;
        text-align: center;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Ensure images are not constrained by container */
    .cart-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 12px !important;
        display: block !important;
        margin: 0 auto !important;
        min-height: auto !important;
        max-height: none !important;
        object-position: center !important;
    }
    
    /* Override any potential grid constraints */
    .cart-left-section {
        flex-direction: column;
        text-align: center;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .cart-info {
        text-align: center;
        width: 100%;
    }
    
    .cart-features {
        justify-content: center;
        width: 100%;
    }
    
    /* Hide "Capacity" text on mobile */
    .cart-features li:contains("Capacity"),
    .cart-features li:contains("capacity") {
        display: none;
    }
    
    /* Alternative approach - hide capacity list items on mobile */
    .cart-features li:nth-child(3) {
        display: none;
    }
    
    .cart-right-section {
        justify-content: center;
        margin-top: 1rem;
        display: flex;
        align-items: center;
        width: 100%;
        text-align: center;
    }
    
    .select-btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
    
    /* Mobile Recommended Banner Styling */
    .recommended-badge {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 100%;
        text-align: left;
        margin-bottom: 1rem;
        padding: 0.75rem;
        border-radius: 8px;
        font-size: 0.9rem;
        z-index: 1;
        max-width: none;
    }
    
    .recommended-badge i {
        margin-right: 0.5rem;
        font-size: 1rem;
    }
    
    .recommended-badge span {
        font-size: 0;
    }
    
    .recommended-badge span::before {
        content: "Recommended";
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    /* Simple approach - show only "Recommended" on mobile */
    .recommended-badge span {
        font-size: 0;
    }
    
    .recommended-badge span::before {
        content: "Recommended";
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    /* Ensure cart option has relative positioning for absolute banner */
    .cart-option.featured {
        position: relative;
    }
    
    /* Mobile cart layout - banner above image */
    .cart-main-content {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .cart-left-section {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .cart-image {
        margin-top: 0;
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }
}

/* Step 3 Layout Styles */
.step3-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
}

.step3-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step3-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Step 3 Heading */
#step3 h2 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.2;
}

/* Step 3 Rental Summary */
#step3 .rental-summary {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

#step3 .rental-summary h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

#step3 .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
}

#step3 .summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.125rem;
    color: #047857;
}

#step3 .summary-item span:first-child {
    color: #64748b;
    font-weight: 500;
}

#step3 .summary-item span:last-child {
    color: #1e293b;
    font-weight: 600;
}

/* Step 3 Checkout Button */
#step3 .rental-summary .checkout-btn {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
    min-width: 200px;
    margin: 2rem auto 0;
    display: block;
}

#step3 .rental-summary .checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.35);
    background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
}

/* Addon Option Styles */
.addon-option {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.addon-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #047857 0%, #10b981 100%);
    border-radius: 20px 20px 0 0;
}

.addon-option:hover {
    border-color: #047857;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.addon-option h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.addon-option p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.addon-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.addon-details span {
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.quantity-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.quantity-selector label {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
}

.quantity-selector select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.quantity-selector select:hover {
    border-color: #047857;
}

.quantity-selector select:focus {
    outline: none;
    border-color: #047857;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}



@media (max-width: 480px) {
    #step3 h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .step3-layout {
        padding: 0.75rem;
        gap: 1rem;
    }
    
    #step3 .rental-summary {
        padding: 1.25rem;
    }
    
    #step3 .rental-summary h3 {
        font-size: 1.125rem;
    }
    
    #step3 .rental-summary .checkout-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        min-width: 160px;
        margin: 1rem auto 0;
    }
    
    .addon-option {
        padding: 1.25rem;
    }
    
    .addon-option h3 {
        font-size: 1.125rem;
    }
    
    .addon-option p {
        font-size: 0.8rem;
    }
    
    .addon-details {
        padding: 0.5rem;
    }
    
    .addon-details span {
        font-size: 0.8rem;
    }
    
    .quantity-selector select {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
}



/* Final Summary Section */
.final-summary {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.final-summary h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.final-summary h3 i {
    color: #047857;
    font-size: 1.25rem;
}

.summary-note {
    color: #64748b;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.summary-note i {
    color: #047857;
    font-size: 1rem;
}

.final-summary .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
}

.final-summary .summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.125rem;
    color: #047857;
}

.final-summary .summary-item span:first-child {
    color: #64748b;
    font-weight: 500;
}

.final-summary .summary-item span:last-child {
    color: #1e293b;
    font-weight: 600;
}

/* Security Notice */
.security-notice {
    background: linear-gradient(145deg, #fef7ed 0%, #fef3e2 100%);
    border: 2px solid #f59e0b;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.security-icon {
    color: #f59e0b;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.security-content h4 {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.security-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.security-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.security-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-badge i {
    font-size: 0.75rem;
}

/* Payment Form */
.payment-form {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.payment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-header h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.payment-header h3 i {
    color: #047857;
    font-size: 1.25rem;
}

.payment-header p {
    color: #64748b;
    font-size: 1rem;
}

/* Card Type Indicator */
.card-type-indicator {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.card-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.card-icons i {
    font-size: 2rem;
    color: #64748b;
    transition: color 0.3s ease;
}

.card-icons i:hover {
    color: #047857;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #64748b;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #1e293b;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #047857;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

.form-group input:hover {
    border-color: #cbd5e1;
}

.form-group input::placeholder {
    color: #94a3b8;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Input Errors */
.input-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

/* Billing Address Section */
.billing-address-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.billing-address-section h4 {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.billing-address-section h4 i {
    color: #64748b;
    font-size: 1rem;
}

/* Payment Options */
.payment-options {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 0.125rem;
}

.checkbox-container .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #047857;
    font-size: 14px;
    font-weight: bold;
}

/* Payment Submit Section */
.payment-submit-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.payment-submit-section .btn {
    margin: 0 0.5rem;
}

/* Step 4 Button Styles */
#step4 .step-buttons {
    justify-content: space-between;
    margin-top: 2rem;
}

#step4 .step-buttons .btn {
    min-width: 200px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    #step4 .step-buttons .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    #step4 .step-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    #step4 .step-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }
}

/* Responsive Step 4 Layout */
@media (max-width: 1024px) {
    .step4-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step4-left {
        order: 2;
    }
    
    .step4-right {
        order: 1;
    }
    
    .final-summary {
        position: static;
    }
}

/* ===== FORCE DESKTOP BLACK INPUTS - OVERRIDE CART-CARDS.CSS ===== */
@media (min-width: 768px) {
    /* Override the white backgrounds in this file */
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #000000 !important;
        background-color: #000000 !important;
        color: #ffffff !important;
        border-color: #333333 !important;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        background: #111111 !important;
        background-color: #111111 !important;
        color: #ffffff !important;
        border-color: #666666 !important;
    }
    
    .form-group input:hover {
        background: #000000 !important;
        background-color: #000000 !important;
        color: #ffffff !important;
        border-color: #333333 !important;
    }
    
    /* Force all input types */
    .form-group input[type="text"],
    .form-group input[type="date"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="time"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        background: #000000 !important;
        background-color: #000000 !important;
        color: #ffffff !important;
        border-color: #333333 !important;
    }
    
    /* Ensure placeholder text is visible on black backgrounds */
    .form-group input::placeholder,
    .form-group select::placeholder,
    .form-group textarea::placeholder {
        color: #cccccc !important; /* Light gray placeholder text */
        opacity: 1 !important; /* Ensure full opacity */
    }
    
    /* Specific placeholder styling for different input types */
    .form-group input[type="text"]::placeholder,
    .form-group input[type="email"]::placeholder,
    .form-group input[type="tel"]::placeholder,
    .form-group input[type="time"]::placeholder,
    .form-group input[type="number"]::placeholder {
        color: #cccccc !important;
    }
    
    .form-group input[type="date"]::placeholder {
        color: #cccccc !important;
    }
}


