: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.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: #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: white;
}

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

/* Form Validation */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
}

.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 {
  display: block; /* only show when form validated */
}

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

.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;
}
