/* =====================================================
   PROPERTY FINDER MODAL - PREMIUM CSS
   ===================================================== */

/* ===================== MODAL OVERLAY & CONTAINER ===================== */
.hh-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hh-modal.active {
    opacity: 1;
    visibility: visible;
}

.hh-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.hh-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hh-modal.active .hh-modal-container {
    transform: translate(-50%, -50%) scale(1);
}

.hh-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.hh-modal-close:hover {
    background: #C5A572;
    transform: rotate(90deg) scale(1.1);
}

.hh-modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px;
}

/* Custom Scrollbar */
.hh-modal-content::-webkit-scrollbar {
    width: 8px;
}

.hh-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.hh-modal-content::-webkit-scrollbar-thumb {
    background: #C5A572;
    border-radius: 10px;
}

.hh-modal-content::-webkit-scrollbar-thumb:hover {
    background: #09747f;
}

/* ===================== PROGRESS INDICATOR ===================== */
.hh-modal-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    padding: 0 20px;
}

.hh-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.hh-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #6c757d;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.hh-progress-step.active .hh-step-circle {
    background: #C5A572;
    border-color: #C5A572;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(10, 31, 63, 0.15);
    transform: scale(1.1);
}

.hh-progress-step.completed .hh-step-circle {
    background: #09747f;
    border-color: #09747f;
    color: #ffffff;
}

/* .hh-progress-step.completed .hh-step-circle::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
} */

.hh-progress-step span {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    text-align: center;
}

.hh-progress-step.active span {
    color: #09747f;
}

.hh-progress-line {
    width: 100px;
    height: 3px;
    background: #e9ecef;
    position: relative;
    margin: 0 10px;
    margin-bottom: 35px;
}

.hh-progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #C5A572;
    transition: width 0.5s ease;
}

.hh-progress-step.completed+.hh-progress-line::after {
    width: 100%;
}

/* ===================== FORM SECTIONS ===================== */
.hh-modal-form {
    position: relative;
}

.hh-form-section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.hh-form-section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hh-modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #09747f;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* ===================== PROPERTY TYPE GRID (STEP 1) ===================== */
.hh-property-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 25px;
}

.hh-property-type-card {
    background: #ffffff;
    border: 3px solid #e9ecef;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hh-property-type-card:hover {
    transform: translateY(-10px);
    border-color: #C5A572;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hh-property-type-card.selected {
    border-color: #09747f;
    box-shadow: 0 20px 60px rgba(10, 31, 63, 0.25);
    transform: translateY(-10px);
}

.hh-type-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.hh-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hh-property-type-card:hover .hh-type-image img {
    transform: scale(1.1);
}

/* .hh-type-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 116, 127, 0.7) 100%);

    opacity: 0;
    transition: opacity 0.4s ease;
} */

/* .hh-property-type-card:hover .hh-type-overlay,
.hh-property-type-card.selected .hh-type-overlay {
    opacity: 1;
} */

.hh-check-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #09747f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.hh-property-type-card.selected .hh-check-icon {
    opacity: 1;
    transform: scale(1);
}

.hh-property-type-card h4 {
    padding: 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #09747f;
    text-align: center;
    margin: 0;

}

/* ===================== BEDROOM GRID (STEP 2) ===================== */
.hh-bedroom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.hh-bedroom-card {
    background: #ffffff;
    border: 3px solid #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.hh-bedroom-card:hover {
    transform: translateY(-8px);
    border-color: #C5A572;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.hh-bedroom-card.selected {
    border-color: #09747f;
    background: linear-gradient(135deg, rgba(10, 31, 63, 0.05) 0%, rgba(197, 165, 114, 0.05) 100%);
    box-shadow: 0 15px 50px rgba(10, 31, 63, 0.2);
}

.hh-bedroom-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.hh-bedroom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hh-bedroom-card:hover .hh-bedroom-image img {
    transform: scale(1.08);
}

.hh-bedroom-card.selected .hh-bedroom-image::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #09747f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
    animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.hh-bedroom-card h4 {
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #09747f;
    text-align: center;
    margin: 0;
}

/* ===================== PURPOSE GRID (STEP 3) ===================== */
.hh-purpose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.hh-purpose-card {
    background: #ffffff;
    border: 3px solid #e9ecef;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.hh-purpose-card:hover {
    transform: translateY(-10px);
    border-color: #C5A572;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hh-purpose-card.selected {
    border-color: #09747f;
    box-shadow: 0 20px 60px rgba(10, 31, 63, 0.25);
}

.hh-purpose-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.hh-purpose-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hh-purpose-card:hover .hh-purpose-image img {
    transform: scale(1.1);
}

.hh-purpose-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(180deg, transparent 0%, rgba(10, 31, 63, 0.8) 100%); */
    background: linear-gradient(180deg, transparent 0%, rgba(9, 116, 127, 0.8) 100%);

    opacity: 0;
    transition: opacity 0.4s ease;
}

.hh-purpose-card:hover .hh-purpose-overlay,
.hh-purpose-card.selected .hh-purpose-overlay {
    opacity: 1;
}

.hh-purpose-card h4 {
    padding: 25px;
    font-size: 20px;
    font-weight: 700;
    color: #09747f;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* ===================== BUDGET GRID (STEP 4) ===================== */
.hh-budget-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.hh-budget-card {
    background: #ffffff;
    border: 3px solid #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.hh-budget-card:hover {
    transform: translateY(-8px);
    border-color: #C5A572;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.hh-budget-card.selected {
    border-color: #09747f;
    box-shadow: 0 15px 50px rgba(10, 31, 63, 0.2);
}

.hh-budget-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.hh-budget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hh-budget-card:hover .hh-budget-image img {
    transform: scale(1.08);
}

.hh-budget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(180deg, transparent 0%, rgba(10, 31, 63, 0.7) 100%); */
    background: linear-gradient(180deg, transparent 0%, rgba(9, 116, 127, 0.7) 100%);

    opacity: 0;
    transition: opacity 0.4s ease;
}

.hh-budget-card:hover .hh-budget-overlay,
.hh-budget-card.selected .hh-budget-overlay {
    opacity: 1;
}

.hh-budget-card h4 {
    padding: 20px 15px;
    font-size: 16px;
    font-weight: 700;
    color: #09747f;
    text-align: center;
    margin: 0;
}

/* ===================== FINAL FORM (STEP 5) ===================== */
.hh-final-header {
    text-align: center;
    margin-bottom: 40px;
}

.hh-completion-text {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.hh-final-desc {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.hh-final-desc strong {
    color: #09747f;
}

.hh-final-form {
    max-width: 700px;
    margin: 0 auto;
}

.hh-input-row {
    margin-bottom: 25px;
}

.hh-final-input {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #09747f;
    transition: all 0.3s ease;

}

.hh-final-input:focus {
    outline: none;
    border-color: #09747f;
    box-shadow: 0 0 0 4px rgba(10, 31, 63, 0.1);
}

.hh-final-input::placeholder {
    color: #9ca3af;
}

.hh-phone-input-wrapper {
    display: flex;
    gap: 15px;
}

.hh-country-prefix {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    background: #f8f9fa;
    min-width: 100px;
}

.hh-country-prefix img {
    width: 30px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
}

.hh-country-prefix span {
    font-weight: 700;
    color: #09747f;
    font-size: 16px;
}

.hh-phone-number {
    flex: 1;
}

.hh-checkbox-wrapper {
    margin-bottom: 30px;
}

.hh-checkbox-label {
    display: flex;
    align-items: start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.hh-checkbox-label input[type="checkbox"] {
    display: none;
}

.hh-checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.hh-checkbox-label input[type="checkbox"]:checked~.hh-checkmark {
    background: #C5A572;
    border-color: #C5A572;
}

.hh-checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffffff;
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.hh-checkbox-label input[type="checkbox"]:checked~.hh-checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.hh-checkbox-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
}

/* ===================== MODAL BUTTONS ===================== */
.hh-modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.hh-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    overflow: hidden;
    justify-content: center;
}

.hh-modal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hh-modal-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hh-modal-btn span,
.hh-modal-btn i {
    position: relative;
    z-index: 1;
}

.hh-btn-back {
    background: #e9ecef;
    color: #09747f;
    min-width: 150px;
}

.hh-btn-back:hover {
    background: #09747f;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(10, 31, 63, 0.3);
}

.hh-btn-next,
.hh-btn-submit {
    background: linear-gradient(135deg, #C5A572 0%, #d4b682 100%);
    color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(197, 165, 114, 0.4);
}

.hh-btn-next:hover,
.hh-btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(197, 165, 114, 0.5);
}

.hh-btn-next:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.hh-btn-next:disabled:hover {
    transform: none;
}

/* Full width submit button */
[data-section="5"] .hh-btn-submit {
    width: 100%;
    justify-content: center;
    padding: 10px 40px;
    font-size: 14px;
}

/* ===================== SUCCESS SECTION ===================== */
.hh-success-section {
    text-align: center;
    padding: 60px 40px;
}

.hh-success-content {
    max-width: 600px;
    margin: 0 auto;
}

.hh-success-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #09747f 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: successPulse 1s ease;
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.4);
}

.hh-success-icon i {
    font-size: 60px;
    color: #ffffff;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hh-success-title {
    font-size: 42px;
    font-weight: 700;
    color: #09747f;
    margin-bottom: 20px;
    
}

.hh-success-text {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hh-btn-close-modal {
    background: #09747f;
    color: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(10, 31, 63, 0.3);
}

.hh-btn-close-modal:hover {
    background: #C5A572;
    color: #09747f;
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 1199px) {
    .hh-modal-content {
        padding: 40px;
    }

    .hh-property-type-grid,
    .hh-purpose-grid {
        gap: 20px;
    }

    .hh-budget-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .hh-modal-container {
        width: 98%;
        max-height: 95vh;
    }

    .hh-modal-content {
        padding: 30px 25px;
    }

    .hh-modal-title {
        font-size: 30px;
        margin-bottom: 35px;
    }

    .hh-property-type-grid,
    .hh-purpose-grid,
    .hh-bedroom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hh-budget-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hh-modal-progress {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    .hh-progress-step span {
        font-size: 11px;
    }

    .hh-step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hh-progress-line {
        width: 60px;
    }
}

@media (max-width: 767px) {
    .hh-modal-content {
        padding: 25px 20px;
    }

    .hh-modal-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .hh-property-type-grid,
    .hh-purpose-grid,
    .hh-bedroom-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hh-type-image,
    .hh-purpose-image {
        height: 200px;
    }

    .hh-bedroom-image,
    .hh-budget-image {
        height: 180px;
    }

    .hh-modal-actions {
        flex-direction: column;
        gap: 15px;
    }

    .hh-modal-btn {
        width: 100%;
        justify-content: center;
    }

    .hh-phone-input-wrapper {
        flex-direction: column;
    }

    .hh-country-prefix {
        width: 100%;
        justify-content: center;
    }

    .hh-modal-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }

    .hh-progress-step {
        min-width: 70px;
    }

    .hh-step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .hh-progress-step span {
        font-size: 10px;
    }

    .hh-progress-line {
        width: 40px;
        margin: 0 5px;
    }
}

@media (max-width: 575px) {
    .hh-modal-title {
        font-size: 22px;
    }

    .hh-property-type-card h4,
    .hh-purpose-card h4 {
        font-size: 18px;
        padding: 20px 15px;
    }

    .hh-bedroom-card h4,
    .hh-budget-card h4 {
        font-size: 15px;
        padding: 15px 10px;
    }

    .hh-success-icon {
        width: 100px;
        height: 100px;
    }

    .hh-success-icon i {
        font-size: 50px;
    }

    .hh-success-title {
        font-size: 32px;
    }
}

/* ===================== ANIMATIONS ===================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add smooth transitions for all interactive elements */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Focus states for accessibility */
.hh-property-type-card:focus-visible,
.hh-bedroom-card:focus-visible,
.hh-purpose-card:focus-visible,
.hh-budget-card:focus-visible,
.hh-modal-btn:focus-visible {
    outline: 3px solid #C5A572;
    outline-offset: 3px;
}