#maxmoney-ms-wrapper {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

/* Next / Back buttons – pill style to match "Apply Online Now" */
#maxmoney-ms-wrapper .mm-next-btn,
#maxmoney-ms-wrapper .mm-prev-btn,
#maxmoney-ms-wrapper .maxmoney-ms-form button[type="submit"] {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(38, 169, 224, 0.25);
}
#maxmoney-ms-wrapper .mm-next-btn,
#maxmoney-ms-wrapper .maxmoney-ms-form button[type="submit"] {
    background: #26A9E0;
    color: #fff;
}
#maxmoney-ms-wrapper .mm-next-btn:hover,
#maxmoney-ms-wrapper .maxmoney-ms-form button[type="submit"]:hover {
    opacity: 0.92;
    box-shadow: 0 3px 12px rgba(38, 169, 224, 0.35);
}
#maxmoney-ms-wrapper .mm-prev-btn {
    background: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    box-shadow: none;
}
#maxmoney-ms-wrapper .mm-prev-btn:hover {
    background: rgba(38, 169, 224, 0.08);
    box-shadow: 0 2px 8px rgba(38, 169, 224, 0.15);
}
#maxmoney-ms-wrapper .mm-two-col .mm-prev-btn {
    margin-right: 10px;
}

/* Progress bar */
.maxmoney-ms-progress {
    margin-bottom: 24px;
}
.maxmoney-ms-progress-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}
.maxmoney-ms-progress-bar {
    height: 8px;
    background: #e2e4e7;
    border-radius: 4px;
    overflow: hidden;
}
.maxmoney-ms-progress-fill {
    height: 100%;
    background: #2271b1;
    border-radius: 4px;
    transition: width 0.3s ease;
}
.maxmoney-ms-step {
    display: none;
}
.maxmoney-ms-step.active {
    display: block;
}

/* Loading overlay */
.maxmoney-ms-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 10;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 8px;
}
#maxmoney-ms-wrapper {
    position: relative;
}
#maxmoney-ms-wrapper.maxmoney-ms-loading .maxmoney-ms-loading-overlay {
    display: flex;
}
.maxmoney-ms-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e4e7;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: maxmoney-ms-spin 0.8s linear infinite;
}
.maxmoney-ms-loading-text {
    margin-top: 12px;
    font-size: 14px;
    color: #1d2327;
}
@keyframes maxmoney-ms-spin {
    to { transform: rotate(360deg); }
}
.mm-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 10px 20px;
}
.mm-two-col input[type="date"] {
    max-width: 100%;
    min-height: 40px;
    padding: 6px 10px;
    box-sizing: border-box;
}

/* Residence owner checkbox (Step 2 – Address) */
.mm-residence-owner-wrap {
    margin: 16px 0;
    padding: 12px 0;
    display: block;
}
.mm-residence-owner-wrap label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}
.mm-residence-owner-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    position: static !important;
    accent-color: #26A9E0;
}

/* Section titles (e.g. Bank Account Details) */
.mm-section-title {
    margin: 1.2em 0 0.6em;
    font-size: 1.05em;
    color: #1d2327;
}

/* Loan products (Step 4) */
.maxmoney-ms-loan-products-wrap {
    margin-top: 20px;
}
.maxmoney-ms-loan-products-wrap .maxmoney-ms-loan-products-loading {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #646970;
}
.maxmoney-ms-loan-products-wrap.loaded .maxmoney-ms-loan-products-loading {
    display: none;
}
.maxmoney-ms-loan-products-wrap select {
    min-width: 220px;
}

/* Consent (Step 4) */
.maxmoney-ms-consent-wrap {
    margin-top: 20px;
}
.maxmoney-ms-consent-reason-wrap {
    margin-top: 10px;
}
.maxmoney-ms-consent-wrap textarea {
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}
/* Status message (success / error) – replaces alert */
.maxmoney-ms-status {
    margin: 20px 0;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
}
.maxmoney-ms-status--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.maxmoney-ms-status--error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.maxmoney-ms-status p {
    margin: 0;
}

#maxmoney-ms-debug pre {
    background: #111;
    color: #0f0;
    padding: 10px;
    font-size: 12px;
    overflow: auto;
}
