/* Modern Custom Checkout CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Outfit', sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.custom-modal-overlay.active .custom-modal-content {
    transform: scale(1) translateY(0);
}

.custom-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.custom-modal-close:hover {
    color: #1e293b;
}

.checkout-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.checkout-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 15px;
}

.checkout-steps {
    display: flex;
    gap: 15px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: linear-gradient(135deg, #f16334 0%, #ff8c61 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(241, 99, 52, 0.3);
}

.step-indicator.completed {
    background: #10b981;
    color: white;
}

.checkout-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.checkout-step {
    animation: fadeIn 0.4s ease forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-step h3 {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 600;
}

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

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

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: #0f172a;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f16334;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(241, 99, 52, 0.1);
}

.card-icon {
    position: absolute;
    right: 15px;
    top: 38px;
    font-size: 20px;
    color: #94a3b8;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.payment-option:hover {
    border-color: #f16334;
    background: #fffafa;
}

.payment-option input[type="radio"] {
    accent-color: #f16334;
    width: 18px;
    height: 18px;
}

.payment-option span {
    font-weight: 500;
    color: #1e293b;
    font-size: 1rem;
}

.order-summary-box {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.order-summary-box p {
    display: flex;
    justify-content: space-between;
    margin: 0 0 10px 0;
    color: #475569;
}

.order-summary-box hr {
    border: none;
    border-top: 1px dashed #cbd5e1;
    margin: 15px 0;
}

.step-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-next,
.btn-submit {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f16334 0%, #ff8c61 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 99, 52, 0.25);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(241, 99, 52, 0.35);
}

.btn-prev {
    padding: 14px 24px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: white;
    color: #475569;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-prev:hover {
    background: #f8fafc;
    color: #0f172a;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(241, 99, 52, 0.2);
    border-left-color: #f16334;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
    animation: bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Custom Sticky Header - Modern & Responsive */
.site-header-custom {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    transition: all 0.3s ease;
}

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

.header-logo-custom img {
    height: 40px;
    width: auto;
}

.header-nav-custom {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-nav-custom a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.header-nav-custom a:hover {
    color: #f16334;
}

.btn-custom {
    background: linear-gradient(135deg, #f16334 0%, #ff8c61 100%);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 99, 52, 0.25);
    display: inline-block;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(241, 99, 52, 0.35);
}

/* Image Animations */
.img-float {
    animation: floatAnim 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.1));
}

@keyframes floatAnim {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-nav-custom {
        display: none;
        /* Hide nav on mobile for simplicity, or implement hamburger */
    }

    .header-container-custom {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Phase 3: Premium Design Enhancements */

/* Deep Button Glow & Shine Animation */
.btn-custom,
.elementor-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-custom::before,
.elementor-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: buttonShine 4s infinite;
    z-index: -1;
}

@keyframes buttonShine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Feature Boxes - Hover Lift & Glass */
.elementor-widget-icon-box .elementor-icon-box-wrapper {
    transition: all 0.4s ease;
    padding: 20px;
    border-radius: 20px;
    background: transparent;
}

.elementor-widget-icon-box:hover .elementor-icon-box-wrapper {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Enhancing Product Images (non-floating ones) */
.elementor-widget-image img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.elementor-widget-image:hover img {
    transform: scale(1.03);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

/* Text Selection Color */
::selection {
    background: #f16334;
    color: white;
}

/* Subtle gradient text for main headings */
h2.elementor-heading-title:not(.elementor-size-default) {
    background: linear-gradient(135deg, #0f172a 0%, #334155 40%, #f16334 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}