body.form-page {
    font-family: 'Poppins', sans-serif;
    color: #002536;
    background: #FAFAFA;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    width: 100%;
    min-height: 100vh;
}

.form-page-container {
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #FAFAFA;
    background-size: cover;
    background-position: center;
}

.form-page-container .login-pf-page-header {
    margin-bottom: 0;
}

.form-page-container #kc-header {
    padding: 0;
}

.form-page-container #kc-header-wrapper {
    min-height: 80px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 768px) {
    .form-page-container #kc-header-wrapper {
        padding: 0 48px;
    }
}

.form-page-container .card-pf {
    flex: 1;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
}

.form-page-container .form-card-wrapper {
    background: transparent!important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    padding: 48px 30px;
    margin: 20px;
    max-width: 600px;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .form-page-container .form-card-wrapper {
        min-width: 600px;
        max-width: 800px;
        padding: 60px 40px;
    }
}

.form-page-container #kc-page-title {
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
    font-size: 19px;
    color: #002536;
}

.form-page-container #kc-page-text {
    font-size: 16px;
    text-align: center;
    color: #798B95;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Form specific styles */
#kc-update-profile-form {
    display: flex;
    flex-wrap: wrap;
    row-gap: 16px;
    column-gap: 16px;
    width: 100%;
}

#kc-update-profile-title {
    font-size: 24px;
    color: #022647;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

#kc-update-profile-text {
    font-size: 16px;
    font-weight: 400;
    color: #798B95;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

#kc-update-profile-form > div:nth-child(1), 
#kc-update-profile-form > div:nth-child(2) {
    width: calc(50% - 8px);
}

.form-page-container .form-group {
    width: 100%;
    margin: 0;
}

.form-page-container .form-group > div {
    padding: 0;
}

/* Form inputs styling */
.form-page-container .form-group input[type="text"],
.form-page-container .form-group input[type="password"],
.form-page-container .form-group input[type="email"],
.form-page-container .form-group input[type="tel"],
.form-page-container .form-group input[type="date"],
.form-page-container .form-group select {
    border-radius: 12px;
    font-size: 16px;
    height: auto !important;
    padding: 11px 16px;
    color: #1A1A1A;
    border: 1px solid #9FB3BF;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 46px;
}

.form-page-container .form-group input:focus,
.form-page-container .form-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-page-container .form-group input::placeholder,
.form-page-container .form-group select::placeholder {
    color: #B5B5B5;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
}

/* Webkit placeholder styles for better browser support */
.form-page-container .form-group input::-webkit-input-placeholder,
.form-page-container .form-group select::-webkit-input-placeholder {
    color: #B5B5B5;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.form-page-container .form-group input::-moz-placeholder,
.form-page-container .form-group select::-moz-placeholder {
    color: #B5B5B5;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    opacity: 1;
}

.form-page-container .form-group input:-ms-input-placeholder,
.form-page-container .form-group select:-ms-input-placeholder {
    color: #B5B5B5;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.form-page-container .form-group label {
    font-weight: 500;
    color: #002536;
    margin-bottom: 4px;
    font-size: 14px;
}

/* Button styling */
#kc-form-buttons {
    width: 100%;
    margin-top: 4px;
}

.form-page-container #kc-form-buttons input {
    height: 48px !important;
    border-radius: 24px;
    color: #fff;
    background: #000000;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    padding: 13px 40px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.form-page-container #kc-form-buttons input:disabled {
    background-color: #D6E0E5;
    color: #798B95;
    cursor: not-allowed;
}

.form-page-container #kc-form-buttons input.is-loading {
    background: linear-gradient(90deg, #000000 0%, #2B2B2B 50%, #000000 100%);
    background-size: 200% 100%;
    animation: kc-loading-gradient 1.2s linear infinite;
}

@keyframes kc-loading-gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Phone input component styles */
.phone-input-container {
    display: flex;
    gap: 8px;
    width: 100%;
}

select {
    background-image: url("../img/arrow.svg")!important;
    background-repeat: no-repeat!important;
    background-position: right 12px center!important;
    background-size: 16px!important;
    padding-right: 40px!important;
}

.country-select-with-code,
.country-select-name-only {
    flex: 0 0 171px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #9FB3BF;
    background-color: #FFFFFF;
    padding: 0 12px;
    font-size: 16px;
    color: #B5B5B5;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;

}

.country-select-with-code option:first-child,
.country-select-name-only option:first-child {
    color: #B5B5B5;
    font-weight: 500;
}

.country-select-with-code option:not(:first-child),
.country-select-name-only option:not(:first-child) {
    /*color: #1A1A1A;*/
}

/* Style the select itself to show placeholder color when first option is selected */
.country-select-with-code:invalid,
.country-select-name-only:invalid {
    color: #B5B5B5!important;
}

.country-select-with-code:valid,
.country-select-name-only:valid {
    /*color: #1A1A1A;*/
}

.country-select-with-code:focus,
.country-select-name-only:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.country-select-with-code option,
.country-select-name-only option {
    padding: 8px 12px;
    font-size: 16px;
}

.phone-number-input {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #9FB3BF;
    background: #FFFFFF;
    padding: 11px 16px;
    font-size: 16px;
    color: #1A1A1A;
    transition: all 0.3s ease;
    font-family: "DM Sans", monospace; /* Monospace for better number alignment */
    letter-spacing: 0.5px; /* Better spacing for formatted numbers */
}

.phone-number-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.phone-number-input::placeholder {
    color: #B5B5B5;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: normal;
}

@media screen and (max-width: 480px) {
    .phone-input-container {
        gap: 8px;
    }
    .country-select-with-code,
    .phone-number-input {
        flex: auto;
        width: 50%!important;
    }
    .form-page-container .card-pf {
        padding-top: 48px;
    }
    .form-page-container .form-card-wrapper {
        margin: 10px;
        padding: 32px 20px;
        border-radius: 16px;
    }
    .form-page-container #kc-locale-card-wrapper {
        padding: 0  ; 
   }
   
   .country-select {
       flex: none;
       width: 100%;
   }
}

.form-page-container #kc-locale-card-wrapper {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0;
}

#kc-update-profile-form {
    display: flex;
    flex-wrap: wrap;
    row-gap: 12px;
    column-gap: 8px;
}

#kc-update-profile-text {
    font-size: 14px;
    font-weight: 500;
    color: #798B95;
    margin-bottom: 12px;
}

#kc-update-profile-form .form-group:nth-child(1), #kc-update-profile-form .form-group:nth-child(2) {
    width: calc(50% - 4px);
}

.form-page-container .hidden-label {
    opacity: 0;
    pointer-events: none;
}

/* Date validation error styles */
.date-error-message {
    color: #a30000 !important;
    font-size: 12px !important;
    margin-top: 0 !important;
    display: block;
}

.form-page-container .form-group input[type="date"]:invalid:focus {
    border-color: #a30000 !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

.pf-c-check__input{
    accent-color: black;
}
