/* Base styles for both forms */
body {
    padding: 0;
    margin: 0;
    top:0;
}

.container {
    background-color: #eaebf2;
    max-width: 800px;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

/* Title styling */
.title {
    display: none;
}

/* Form styling */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Form field styling */
.form-field {
    display: flex;
    flex-direction: column;
}
.form-field .form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}
.form-field .form-input {
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid black;
    border-radius: 0px;
    font-size: 1rem;
    background-color: #f6f6f6;
    transition: border 0.3s ease;
}
.form-field .form-input:focus {
    outline: none;
    border-bottom: 2px solid #4c6170;
    background-color: #DCDCDC;
    border-radius: 6px 6px 0px 0px;
}
.form-field.field-invalid .form-input {
    border-color: #4c6170;
}
.form-field.field-invalid .expiration-fields {
    border-color: #4c6170;
}

/* Expiration fields styling */
.expiration-fields {
    display: flex;
    width: 100%;
    align-items: stretch;
    border: none;
    border-bottom: 1px solid black;
    border-radius: 0px;
    overflow: hidden;
}
.expiration-fields input.form-input-exp {
    flex: 1;
    min-width: 0;
    text-align: center;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
}
.expiration-fields .expiration-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    font-size: 1.2rem;
    color: #333;
    background-color: #f6f6f6;
}
.expiration-fields:focus-within {
    border-color: #4c6170;
}

/* Submit button styling */
.form-button {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    background-color: #e10025;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #000;
}
.divider:not(:empty)::before {
    margin-right: 0.5em;
}
.divider:not(:empty)::after {
    margin-left: 0.5em;
}

.express-option-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.google-pay-container {
    height: 44px;
}

/* --apple-pay-button-padding also increses the dimensions of the button */
apple-pay-button {
    --apple-pay-button-width: 100%;
    --apple-pay-button-height: 45px;
    --apple-pay-button-border-radius: 4px;
    --apple-pay-button-padding: 0;
}

.form-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.form-button:hover:not(:disabled) {
    background-color: #69bbd8;
}

/* Error messages styling */
.form-errors {
    margin-top: 1rem;
}
.form-errors .error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Styling for the tabs in the PAN tokenization form with PRN (statement reference) */
.pan-tokenization-tabs {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.pan-tokenization-tab {
    text-align: left;
    padding: 0.75rem 1rem;
    background-color: #eaebf2;
    color: #444;
    cursor: pointer;
    font-weight: 550;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    border-radius: 4px;

    &:focus {
        outline: 2px solid #999;
    }

    &:not(:last-child) {
        border-right: 1px solid #ccc;
    }

    &.active {
        background-color: #4c6170;
        color: #fff;
    }

    &:hover {
        background-color: #69bbd8;
        color: #fff;
    }
}
