/*
 * Styles for the Airwallex Simple Payment Plugin
 */

.payment-form__submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-messages {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
    text-align: center;
}


.payment-page {
    padding-top: 6.25rem;
    padding-bottom: 3.125rem;
}

@media (min-width: 81.875em) {
    .payment-page {
        padding-top: 13.125rem;
        padding-bottom: 6.25rem;
    }
}

@supports (padding-top: clamp(6.25rem, 3.6447368421rem + 11.5789473684vw, 13.125rem)) {
    .payment-page {
        padding-top: clamp(6.25rem, 3.6447368421rem + 11.5789473684vw, 13.125rem);
    }
}

@supports (padding-bottom: clamp(3.125rem, 1.8223684211rem + 5.7894736842vw, 6.25rem)) {
    .payment-page {
        padding-bottom: clamp(3.125rem, 1.8223684211rem + 5.7894736842vw, 6.25rem);
    }
}

.payment-page__container {
    max-width: 81.875rem;
    margin: 0 auto;
    padding: 0 0.9375rem;
}

.payment-page__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.payment-page__title {
    width: auto;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 3.75rem;
    line-height: 132%;
    letter-spacing: -0.01em;
    color: #232323;
}

.payment-page__subtitle {
    width: 100%;
    max-width: 32.1875rem;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: -0.03em;
    color: #232323;
}

.payment-page__body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 8.8125rem;
}

.payment-page__form-wrapper {
    width: 39rem;
    flex: none;
}

.payment-page__features {
    width: 32.1875rem;
    flex: none;
}

.payment-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 3rem;
    width: 100%;
}

.payment-form__fields {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 3.5rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 1rem;
    width: 100%;
    opacity: 0.8;
    position: relative;
}

.form-group.has-helper {
    gap: 0.75rem;
}

.form-group__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 1rem;
    width: 100%;
}

.form-group label {
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: -0.03em;
    color: #232323;
    pointer-events: none;
    transition: all 0.3s;
    transform-origin: left top;
}

.form-group input {
    width: 100%;
    border: none;
    border-bottom: 0.5px solid #232323;
    padding: 0.75rem 0 0 0;
    font-size: 1rem;
    background: transparent;
    outline: none;
    transition: border-color 0.3s, opacity 0.3s;
    font-family: 'Inter', sans-serif;
    color: #232323;
}

.form-group input:focus {
    border-bottom-color: #0068FF;
    opacity: 1;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem) scale(0.85);
    color: #0068FF;
}

.form-group input::placeholder {
    color: transparent;
}



.form-helper {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 150%;
    letter-spacing: -0.03em;
    color: #232323;
}

.payment-form__submit {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1.375rem 2.5rem;
    gap: 0.625rem;
    background: #0068FF;
    border-radius: 5rem;
    border: none;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.375rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.3s;
    width: fit-content;
}

.payment-form__submit:hover {
    background: #0052cc;
}

.payment-form__submit:active {
    background: #0400cd;
}

.features-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    padding: 0;
    gap: 1rem;
    width: 100%;
}
.feature-item {
    width: 15.5625rem;
    height: 10.625rem;
    background: #F8FBFF;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #FFFFFF;
    border-radius: 6.1875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width:  40px;
    height:  40px;
}



.feature-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 140%;
    letter-spacing: -0.03em;
    color: #232323;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 75rem) {
    .payment-page__body {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .payment-page__form-wrapper {
        width: 100%;
        max-width: 39rem;
    }
    
    .payment-page__features {
        width: 100%;
        max-width: 32.1875rem;
    }
}

@media (max-width: 61.9375em) {
    .payment-page__title {
        font-size: 3rem;
    }
    
    .payment-page__form-wrapper,
    .payment-page__features {
        max-width: 22.375rem;
    }
    
    .feature-item {
        width: 10.6875rem;
        height: 9.125rem;
        padding: 1rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .payment-form__fields {
        gap: 3rem;
    }
}

@media (max-width: 47.99875em) {
    .payment-page__title {
        font-size: 2.5rem;
    }
    
    .payment-page__head {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 29.99875em) {
    .payment-page__title {
        font-size: 2rem;
    }
}
