@font-face {
    font-family: 'Causten';
    src: url('../../fonts/causten/causten-regular-webfont.woff2') format('woff2'),
         url('../../fonts/causten/causten-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Causten';
    src: url('../../fonts/causten/causten-medium-webfont.woff2') format('woff2'),
         url('../../fonts/causten/causten-medium-webfont.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Causten';
    src: url('../../fonts/causten/causten-semibold-webfont.woff2') format('woff2'),
         url('../../fonts/causten/causten-semibold-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Causten';
    src: url('../../fonts/causten/causten-bold-webfont.woff2') format('woff2'),
         url('../../fonts/causten/causten-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Causten', sans-serif !important;
    background-color: #F8F7F2;
}

/* Fix Placeholder Color */
::placeholder {
    color: #A1A1AA !important;
    opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
    color: #A1A1AA !important;
}

::-ms-input-placeholder {
    color: #A1A1AA !important;
}

/* Fix Border Consistency */
.form-control-custom,
.input-group-custom .form-control-custom,
.input-group-custom:nth-of-type(n) .form-control-custom {
    border: 1.5px solid #D4D4D8 !important; /* Force default light gray regardless of sign-in.css */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 56px !important; /* Force matching height */
}

.form-control-custom:focus,
.form-control:focus,
.input-group-custom .form-control-custom:focus,
.input-group-custom:nth-of-type(n) .form-control-custom:focus {
    border-color: #000 !important; /* Black on focus */
    box-shadow: 0 0 0 1px #000 !important; /* Match sign-in focus shadow */
    outline: none !important;
}

/* Fix Brwoser Autofill Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000 !important;
}

/* Profile Upload Section */
.profile-upload-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.profile-upload-circle {
    width: 80px;
    height: 80px;
    background: #F4F3EF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    background-position: center;
    background-size: cover;
}

.profile-upload-circle:hover {
    background: #E5E5E0;
}

.profile-upload-circle i {
    font-size: 24px;
    color: #000;
}

/* Inline Inputs Row */
.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.input-row .input-group-custom {
    flex: 1;
    margin-bottom: 0;
}

/* Custom Select Dropdown Arrow */
.form-select-custom {
    padding-right: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    appearance: none;
}

/* Password Validation UI */
.password-requirements {
    margin-top: 20px;
    margin-bottom: 25px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #71717A;
    margin-bottom: 6px;
}

.requirement-item.met {
    color: #000;
}

.requirement-item i {
    font-size: 16px;
    color: #D4D4D8;
}

.requirement-item.met i {
    color: #000;
}

/* Terms & Agreement Section */
.terms-wrapper {
    margin-bottom: 30px;
}

.terms-link {
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: underline;
}

/* Form Divider Text */
.divider-text {
    text-align: center;
    font-size: 12px;
    color: #71717A;
    margin: 20px 0;
}

/* Fix intl-tel-input integration */
.iti {
    width: 100%;
    display: block !important;
}

.iti--separate-dial-code input {
    padding-left: 95px !important;
}

.iti__selected-flag {
    padding-left: 18px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
}

.form-control-custom.ps-icon {
    padding-left: 52px !important;
}

/* Fields without left icons */
.form-control-no-left-icon {
    padding-left: 20px !important;
}

/* Fix text color for date inputs to look like placeholder before selection */
input[type="date"].form-control-no-left-icon {
    color: #A1A1AA;
}
input[type="date"].form-control-no-left-icon:valid {
    color: #000;
}

/* Fix country list z-index overlapping with below icons */
.iti__country-list {
    z-index: 999 !important; /* Ensure it stays above input icons */
}

/* Birthday custom icon styling */
.birthday-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 5;
}

/* Hide default browser date picker indicator for cleaner UI */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
}

/* Make footer scrollable instead of fixed on the taller sign-up page */
.page-footer {
    position: static !important;
}

/* Adjust wrapper padding since footer is no longer fixed over the content */
.auth-wrapper {
    padding-bottom: 60px !important;
    padding-top: 120px !important;
}

input#password.is-invalid {
    background-image: none !important;
}

input#confirmPassword.is-invalid {
    background-image: none !important;
}
