/**
 * Search Service Styles
 */

.search-service-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: -50px auto 30px;
    position: relative;
    z-index: 10;
}

.search-container {
    background-color: #fff;
    border-radius: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
  
}

/* PC Version Styles */
.search-form-pc {
    display: flex;
    align-items: center;
    height: 70px;
}

.search-input {
    flex: 1;
    position: relative;
    height: 100%;
}

.service-selector, .date-selector {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    cursor: pointer;
}

.service-selector svg, .date-selector svg {
    margin-left: 10px;
    color: #555;
}

.date-selector svg:first-child {
    margin-right: 10px;
    margin-left: 0;
}

.service-text, .date-text {
    font-weight: 500;
    color: #333;
}

.divider {
    width: 1px;
    height: 30px;
    background-color: #e0e0e0;
}

.service-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 40px 40px;
    z-index: 50;
    display: none;
}

.service-dropdown.active .service-dropdown-content {
    display: block !important;
}

.service-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.service-item:hover {
    background-color: #f5f5f5;
}

/* Date Range Picker Styles */
.date-range-input, .mobile-date-range-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

/* Custom DateRangePicker Styling */
.daterangepicker {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    font-family: inherit;
    z-index: 100 !important;
}

.daterangepicker .calendar-table {
    border-radius: 5px;
    border: none;
}

.daterangepicker .drp-buttons {
    border-top: 1px solid #e0e0e0;
}

.daterangepicker td.active, .daterangepicker td.active:hover {
    background-color: #2046a1 !important;
}

.daterangepicker td.in-range {
    background-color: rgba(32, 70, 161, 0.1);
}

.daterangepicker .btn {
    background-color: #2046a1;
    border-color: #2046a1;
}

.daterangepicker .btn:hover {
    background-color: #17367d;
    border-color: #17367d;
}

.daterangepicker .drp-selected {
    font-weight: 500;
}

.mobile-date-container {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.search-button {
    height: 85%;
    padding: 0 30px;
    background-color: #2046a1;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    min-width: 150px;
}

.search-btn-main {
    border-radius: 40px;
    margin-right: 8px;
}

.search-button:hover {
    background-color: #17367d;
}

.search-button svg {
    margin-right: 10px;
}

/* Mobile Version Styles */
.search-form-mobile {
    display: none;
    position: relative;
}

.mobile-search-input {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-radius: 10px;
    cursor: pointer;
}

.mobile-search-input svg {
    margin-right: 15px;
    color: #555;
}

.mobile-search-dropdown {
   
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 100;
    display: none;
    flex-direction: column;
}

.mobile-search-dropdown.active {
    display: flex;
}

.mobile-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-search-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-mobile-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-search-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-section {
    margin-bottom: 25px;
}

.mobile-section h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #555;
}

.mobile-service-options {
    display: flex;
    flex-direction: column;
}

.mobile-service-item {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mobile-service-item:hover, 
.mobile-service-item.selected {
    background-color: #e0e0e0;
}

.mobile-search-button-container {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.mobile-search-button {
    width: 100%;
    padding: 15px;
    background-color: #2046a1;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mobile-search-button:hover {
    background-color: #17367d;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .search-service-wrapper {
        margin-top: -30px;
        padding: 0 15px;
    }
    
    .search-form-pc {
        display: none;
    }
    
    .search-form-mobile {
        display: block;
    }
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .calendar-day {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
} 