:root {
    --primary-color: #e98d81;
    --secondary-color: #162949;
    --gradient: linear-gradient(129deg, #e4ae78 0%, #eb8684 100%);
}

.employer-auth-page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: rgba(22, 41, 73, 0.9) url("../../images/nav-bg.7519c9d5e3ed.png") center/cover no-repeat;
    background-blend-mode: multiply;
    z-index: -1;
}

img.bg-image {
    position: absolute;
    top: 0;
    background: #162949;
    width: 100%;
    z-index: -1;
    object-fit: cover;
    max-height: 350px;
}

.room-finder-title {
    font-size: 40px;
    color: white;
}

.room-finder-main {
    min-height: calc(100vh - 160px);
    padding-bottom: 1rem;
    /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
}

.room-finder-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin-bottom: 2rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    /*padding-bottom: 2rem;*/
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    /* color: var(--secondary-color); */
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(233, 141, 129, 0.25);
    background-color: white;
}

.form-control-lg {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
}

/* Form Validation — Bootstrap-style :valid/:invalid feedback under .was-validated.
   Green border + checkmark icon when valid, red border + X icon when invalid. */
.form-control.is-valid,
.form-select.is-valid,
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.was-validated .form-control.is-invalid,
.was-validated .form-select.is-invalid,
.form-control.search-not-found,
.was-validated .form-control.search-not-found {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
  display: none; /* hide by default */
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
  display: block; /* only show when form validated */
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
}

.was-validated .form-control:valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-feedback {
    display: block;
}

.btn-gradient {
    background: var(--gradient);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 141, 129, 0.4);
    color: white;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

input,
select,
textarea,
button {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .room-finder-title {
        font-size: 2.5rem;
    }

    .room-finder-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem 2rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .bedroom-options .col-6 {
        margin-bottom: 1rem;
    }

    .submit-btn {
        width: 100%;
        padding: 1.25rem 2rem;
    }
}

@media (max-width: 576px) {
    .room-finder-main {
        padding: 2rem 0;
    }

    .room-finder-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .room-finder-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .bedroom-options .row {
        margin: 0;
    }

    .bedroom-options .col-6 {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }

    .bedroom-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* Animation for form sections */
.form-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.form-section:nth-child(1) {
    animation-delay: 0.1s;
}

.form-section:nth-child(2) {
    animation-delay: 0.2s;
}

.form-section:nth-child(3) {
    animation-delay: 0.3s;
}
