@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* Modern Shopify-style Wizard */
.mb-wizard-container {
    max-width: 650px;
    margin: 40px auto;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(255, 255, 255, 0.3) inset;
    overflow: hidden;
    color: #333;
}

.mb-wizard-progress {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
    border-bottom: 1px solid #e1e3e5;
    font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

.mb-wizard-progress li {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    font-size: 13px;
    color: #8c9196;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.mb-wizard-progress li .step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e1e3e5;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

.mb-wizard-progress li.active .step-num {
    background: #000000;
}

.mb-wizard-progress li.active .step-label {
    color: #000;
    font-weight: 800;
}

.mb-wizard-form {
    padding: 40px;
}

.mb-wizard-step {
    display: none;
}

.mb-wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.mb-step-header {
    margin-bottom: 30px;
}

.mb-step-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 800;
    font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #202223;
}

.mb-step-header p {
    margin: 0;
    color: #6d7175;
    font-size: 14px;
}

.mb-summary-box,
.mb-order-summary {
    background: #f4f6f8;
    border: 1px solid #e1e3e5;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.mb-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.mb-summary-item:last-child {
    margin-bottom: 0;
}

.mb-summary-label {
    font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #202223;
}

.mb-summary-value {
    color: #6d7175;
    text-align: right;
}

.mb-highlight .mb-summary-label,
.mb-highlight .mb-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.mb-summary-note {
    margin-top: 15px;
    font-size: 13px;
    color: #6d7175;
    border-top: 1px solid #e1e3e5;
    padding-top: 15px;
}

.mb-section-title {
    font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    margin: 30px 0 15px 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #202223;
    border-bottom: 1px solid #e1e3e5;
    padding-bottom: 10px;
}

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

.mb-form-group label {
    display: block;
    font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #202223;
}

.mb-form-group input[type="text"],
.mb-form-group input[type="email"],
.mb-form-group input[type="tel"],
.mb-form-group input[type="date"],
.mb-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    font-size: 15px;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    background: #f9fafb;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.mb-form-group input:focus,
.mb-form-group select:focus {
    outline: none;
    border-color: #007aff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.mb-input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mb-input-icon-wrapper input {
    padding-right: 50px !important;
    /* Space for the icon */
}

.mb-card-icon {
    position: absolute;
    right: 12px;
    width: 38px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    background-image: url('../img/card.svg');
    transition: background-image 0.3s ease;
}

.mb-card-icon.visa {
    background-image: url('../img/visa.png');
}

.mb-card-icon.mastercard {
    background-image: url('../img/mastercard.png');
}

.mb-card-icon.amex {
    background-image: url('../img/amex.png');
}

.mb-card-icon.discover {
    background-image: url('../img/discover.png');
}

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

.mb-form-row .mb-form-group {
    flex: 1;
}

.mb-contract-text {
    background: #f9fafb;
    border: 1px solid #e1e3e5;
    padding: 15px;
    border-radius: 4px;
    height: 150px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.5;
    color: #6d7175;
    margin-bottom: 20px;
}

.mb-contract-text p {
    margin-top: 0;
}

.mb-checkbox-group {
    background: #f4f6f8;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e1e3e5;
}

.mb-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal !important;
}

.mb-checkbox-label input {
    margin-top: 3px;
}

.mb-signature-wrapper {
    border: 1px solid #c9cccf;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

canvas#mb_signature_pad {
    width: 100%;
    height: 200px;
    display: block;
    cursor: crosshair;
}

.mb-btn-text {
    background: none;
    border: none;
    color: #006fbb;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.mb-btn-text:hover {
    text-decoration: underline;
}

.mb-wizard-buttons {
    display: flex;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e3e5;
}

.mb-wizard-buttons.right-align {
    justify-content: flex-end;
}

.mb-wizard-buttons.split {
    justify-content: space-between;
}

.mb-btn {
    padding: 14px 28px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mb-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.mb-btn:disabled {
    background: #c9cccf;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mb-btn-alt {
    padding: 14px 28px;
    background: #ffffff;
    color: #202223;
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mb-btn-alt:hover {
    background: #f9fafb;
    border-color: #c9cccf;
}

.mb-error-message {
    background: #fff4f4;
    color: #d82c0d;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ffd7d7;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.mb-error-shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.mb-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.mb-success-message {
    text-align: center;
    padding: 40px 0;
}

.mb-success-icon {
    width: 60px;
    height: 60px;
    background: #008060;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px auto;
}

.mb-success-message h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 800;
    font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #202223;
}

.mb-success-message p {
    color: #6d7175;
}

/* Connecting lines between wizard steps */
.mb-wizard-progress li:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 27px; /* Centers vertically with the 24px circle (15px padding-top + 12px half-height) */
    left: -50%;
    right: 50%;
    margin-left: 22px; /* Leaves a gap after the previous circle */
    margin-right: 22px; /* Leaves a gap before the current circle */
    height: 2px;
    background: #e1e3e5;
    z-index: 1;
    transition: background 0.3s ease;
}

/* Active connecting lines */
.mb-wizard-progress li.active:not(:first-child)::before {
    background: #000000;
}

/* Connecting arrowheads between wizard steps */
.mb-wizard-progress li:not(:first-child)::after {
    content: "";
    position: absolute;
    top: 27px;
    left: calc(50% - 21px); /* Positioned right before the step circle */
    margin-top: -4px; /* Centers the 8px height arrow vertically relative to the line */
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #e1e3e5;
    z-index: 2;
    transition: border-left-color 0.3s ease;
}

/* Active connecting arrowheads */
.mb-wizard-progress li.active:not(:first-child)::after {
    border-left-color: #000000;
}