body,html {
    font-family: "Playwrite DE Grund", cursive;
    margin: 0;
    padding: 0;
    background-color: #f8f2ed;
    width: 100%;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container-md.px-0 {
    flex: 1 0 auto;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 24px;
}

.container-md.px-0 > * {
    width: 100%;
}

.container-md.px-0.py-4 {
    flex: 0 0 auto;
    margin-top: auto;
    display: block;
}

.main-header.navbar {
    background-color: #fff;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    flex: 0 0 auto;
}

.main-header .navbar-brand {
    margin: 0 auto;
}

.btn-brand {
    background-color: #e05678;
    color: #fff;
    border: none;
}

.btn-brand:hover {
    background-color: #c94466;
    color: #fff;
}

.text-primary {
    color: #e05678 !important;
}

a.text-primary:hover {
    color: #c44466 !important;
}

.btn-outline-primary {
    color: #e05678;
    border-color: #e05678;
}

.btn-outline-primary:hover {
    background-color: #e05678;
    border-color: #e05678;
    color: #fff;
}

/* Modern checkout cards */
.checkout-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.checkout-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e05678;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.checkout-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.checkout-card-body {
    padding: 20px;
}

@media (max-width: 768px) {
    .checkout-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        width: 100%;
    }

    form#paymentForm {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0;
        box-shadow: none;
    }

    #step-6 {
        padding: 0 !important;
        margin: 0 !important;
    }

    .payment-details {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .container-md.px-0 {
        padding-top: 0;
        padding-bottom: 0;
    }

    .scroll-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        margin: 16px 0;
        background: linear-gradient(135deg, #e05678, #d44a6c);
        color: #fff;
        border-radius: 30px;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(224, 86, 120, 0.35);
        animation: pulse-glow 2s ease-in-out infinite;
    }

    .scroll-cta i {
        animation: bounce-down 1.5s ease-in-out infinite;
    }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 12px rgba(224, 86, 120, 0.35); }
    50% { box-shadow: 0 6px 20px rgba(224, 86, 120, 0.55); }
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.loader, .nested-loader {
    display: none; /* Assuming these are only for loading states */
}

.float-left{
    float: left;
}

#scrollToReviews{
    cursor: pointer;
}

.float-right{
    float: right;
}

.mobile-only{
    display: none;
}

#scrollToAccount{
    margin-bottom: 20px;
    cursor: pointer;
}

.badge{
    color: #fff!important;
}

form#paymentForm {
    margin: 0 auto;      /* center */
    max-width: 100%;     /* let it go full width on mobile */
    /* no width:100% here */
}

#step-6 {
    width: 100%;
}

.purchase-details {
    flex: 2; /* Occupies more space on the left */
    padding: 20px;
    border-right: 1px solid #e0e0e0;
}

h2 {
    color: #53a683;
}

.payment-gateway {

}

button#submit {
    background-color: #edaedc;
    color: #fff;
    font-size: 16px;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

button#submit:hover {
    background-color: #0056b3;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    padding: 10px;
    font-weight: bold;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #000;
}

.separator:not(:empty)::before {
    margin-right: .25em;
}

.separator:not(:empty)::after {
    margin-left: .25em;
}

#payment-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

.hidden {
    display: none;
}

.main-footer{
    background-color: #f8f2ed;
    margin-top: auto;
}

#payment-section,#verification-code-section,#coupon-section,#free-enrollment-section{
    margin-top: 10px;
    display: none;
}

/* Checkout Progress Indicator */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 12px;
    padding: 16px 10px 8px;
}

.checkout-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.progress-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid #ddd;
    background: #fff;
    color: #aaa;
    transition: all 0.3s ease;
}

.checkout-progress-step.active .progress-step-circle {
    border-color: #e05678;
    background: #e05678;
    color: #fff;
    box-shadow: 0 2px 8px rgba(224, 86, 120, 0.3);
}

.checkout-progress-step.completed .progress-step-circle {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
}

.progress-step-label {
    font-size: 0.72rem;
    color: #aaa;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.checkout-progress-step.active .progress-step-label {
    color: #e05678;
    font-weight: 600;
}

.checkout-progress-step.completed .progress-step-label {
    color: #28a745;
    font-weight: 600;
}

.checkout-progress-connector {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin: 0 8px;
    margin-bottom: 20px;
    min-width: 30px;
    transition: background 0.3s ease;
}

.checkout-progress-connector.completed {
    background: #28a745;
}

.checkout-progress-hint {
    font-size: 0.8rem;
    margin-top: 0;
    padding: 0 10px;
}

.checkout-progress-hint i {
    color: #e05678;
}


.main-footer {
    text-align: center;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    border-top: unset;
}

.main-footer .child {
    flex: 1;
    min-width: 150px;
    margin: 10px 0;
}

.main-footer .copy {
    text-align: left;
}

.main-footer nav {
    height: 100%;
}

.main-footer small {
    font-size: 0.8em;
}

.main-footer li {
    font-size: 0.8em;
    color: #655547;
}


@media (max-width: 768px) {
    .content-wrapper{
        margin-top: 0px!important;
    }
    .main-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .main-footer .copy {
        text-align: center;
    }

    .main-footer .child {
        width: 100%;
    }

    .main-footer nav .footer-links {
        justify-content: center;
    }

    .main-footer li {
        font-size: 0.9em;
    }

    .main-footer small {
        font-size: 0.75em;
    }
}


.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: right;
    gap: 15px;
}


.footer-links li {
    display: inline;
}
.footer-links a {
    text-decoration: none;
    color: #e05678;
    font-size: .8em;
}
.footer-links a:hover {
    text-decoration: underline;
}

/* Only add a right border at ≥md */
@media (max-width: 992px) {
    .border-lg-right {
        border-right: unset;
    }

    .mobile-only{
        display: block;
    }

}






/* Coupon discount breakdown */
.coupon-breakdown {
    border: 1px solid #d4edda;
    background-color: #f6fbf7;
    border-radius: 8px;
    padding: 12px 14px;
}

.coupon-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
    padding: 2px 0;
}

.coupon-breakdown-discount {
    color: #28a745;
    font-weight: 600;
}

.coupon-breakdown-total {
    border-top: 1px solid #d4edda;
    margin-top: 6px;
    padding-top: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d1d1d;
}

.coupon-breakdown-applied {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
}
