* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.column {
    width: 50%;
    height: 100vh;
}

.column-left {
    background-color: #ffffff;
    position: relative;
}

.column-right {
    background-color: #F6F6F6;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px;
}

.logo {
    position: absolute;
    top: 32px;
    left: 32px;
}

.join-membership {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 430px;
    height: auto;
    max-width: 100%;
}

.total {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 15%;
    width: 435px;
    height: auto;
}

.checkout {
    position: static;
    transform: none;
    width: 386px;
    height: auto;
    max-width: 100%;
}

.bank-account-button {
    position: relative;
    transform: none;
    width: 386px;
    display: flex;
    padding: 16px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    background: #FFF;
    background: color(display-p3 1 1 1);
    cursor: pointer;
    color: #000;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "SF Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: -0.23px;
    justify-content: flex-start;
}

.bank-account-button:hover {
    background: #f5f5f5;
    background: color(display-p3 0.96 0.96 0.96);
}

.bank-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.discount-tag {
    height: 26px;
    width: auto;
    flex-shrink: 0;
    margin-left: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: white;
    padding: 24px;
    border-radius: 12px;
    font-family: "SF Pro";
    font-size: 16px;
    width: 380px;
    position: relative;
    transition: all 0.3s ease-out;
    overflow: hidden;
}

.hidden {
    display: none;
}

.select-bank {
    width: 100%;
    height: auto;
    display: block;
}

.bank-select-button {
    position: absolute;
    top: 124px;
    left: 0;
    width: 162px;
    height: 98px;
    border-radius: 8px;
    background: white url('img/chase.png') no-repeat center;
    background-size: 100px auto;
    border: 1px solid #e6e6e6;
    cursor: pointer;
    color: transparent;
}

.bank-logo {
    width: 100px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-step {
    transition: opacity 0.3s ease-out;
    opacity: 1;
    position: relative;
    width: 100%;
    margin: 0;
    left: 0;
    top: 0;
    overflow: hidden;
}

.modal-step.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 24px;
    left: 24px;
    width: calc(100% - 48px);
}

.modal.bank-selection-visible {
    height: 520px; /* Adjust this value to match your bank selection content */
}

.modal.bank-form-visible {
    height: 400px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border: 1px solid color(display-p3 0 0 0 / 0.08);
    background: #FFF;
    background: color(display-p3 1 1 1);
}

.bank-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bank-form h2 {
    color: #000;
    color: color(display-p3 0 0 0);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "SF Pro";
    font-size: 18px;
    font-style: normal;
    font-weight: 590;
    line-height: 30px; /* 166.667% */
    letter-spacing: -0.43px;
}

.chase-form-logo {
    width: 100px;
    height: auto;
}

.submit-button {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 1000px;
    background: #FF4518;
    background: color(display-p3 0.9765 0.3412 0.1961);
    color: white;
    border: none;
    font-family: "SF Pro";
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
}

.submit-button:hover {
    background: #e63d15;
    background: color(display-p3 0.9265 0.3012 0.1561);
}

.terms-text {
    position: static;
    transform: none;
    width: 386px;
    padding-top: 16px;
    text-align: center;
    color: #969696;
    color: color(display-p3 0.5883 0.5883 0.5883);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "SF Pro";
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: -0.08px;
}

.loading-state {
    text-align: center;
    padding: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 48px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.loading-state.visible {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-state p {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}