* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.checkout-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.header {
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: #4f46e5;
    font-weight: 600;
}

.step-line {
    height: 4px;
    flex: 1;
    background-color: #e5e7eb;
    margin: 0 0.5rem;
    max-width: 120px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: linear-gradient(to right, #10b981, #34d399);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.step-content {
    transition: all 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* .form-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
} */

/* .form-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
} */

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.option-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.option-card.selected {
    border-color: #f59e0b;
    background-color: #fffbeb;
}

.option-content {
    margin-left: 1rem;
}

.option-title {
    font-weight: 600;
    color: #1f2937;
}

.option-desc {
    color: #6b7280;
    font-size: 0.9rem;
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(to right, #f59e0b, #f97316);
    color: white;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.review-item:last-child {
    border-bottom: none;
}

.confirmation-container {
    text-align: center;
    padding: 3rem;
}

.confirmation-icon {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.order-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.25rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin: 2rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #f59e0b, #f97316);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.country-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.country-select {
    display: flex;
    align-items: center;
}

.same-as-billing {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #38bdf8;
}

.same-as-billing input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.delivery-info {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #e5e7eb;
}

.payment-logo {
    width: 100px;
    height: auto;
    margin-left: auto;
}



.active-payment {
    background: #dcfce7;
    /* light green background */
    border-color: #22c55e;
    /* green border */
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    /* subtle green shadow */
}

.active-payment img {
    filter: brightness(90%);
}

.active-payment span,
.active-payment div span {
    color: #15803d !important;
    /* text green */
}

/* Checkmark in top-right */
.active-payment .checkmark {
    display: flex !important;
}

.step-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    max-width: 1400px;
}

/* Mobile default — no margin/padding */
@media (max-width: 767px) {
    .step-container {
        margin: 0;
        padding: 0;
    }
}

/* Tablets and up — keep spacing */
@media (min-width: 768px) {
    .step-container {
        margin: 2rem auto;
        padding: 2rem;
    }
}

@media (min-width: 769px) {
    .step-indicators {
        display: flex;
        justify-content: center;
        /* center the whole step bar */
        align-items: center;
        gap: 2rem;
        /* space between steps */
        padding: 2rem 1rem 0;
        /* top padding */
        width: auto;
        /* let content define width */
        margin-bottom: 3rem;
        /* add some bottom spacing */
    }

    .step {
        display: flex;
        flex-direction: column;
        /* icon on top, label below */
        align-items: center;
        text-align: center;
        position: relative;
    }

    .step-line {
        display: block;
        /* show connecting lines */
        flex: 1;
        /* stretch between steps */
        height: 4px;
        /* thickness of the line */
        background: #e5e7eb;
        /* light gray line */
        margin: 0 1rem;
        align-self: center;
    }

    .step-icon {
        margin-bottom: 0.5rem;
        /* space between icon and label */
    }
}


/* Mobile only */
@media (max-width: 768px) {
    .step-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9rem;
        /* shrink icon/font size */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        /* lighter shadow */
    }

    .step.active .step-icon,
    .step.completed .step-icon {
        transform: scale(1.05);
        /* subtle scale on active */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        /* softer but still visible */
    }
}