.search-widget-inner {
    text-align: left;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    padding: 28px;
}

.search-widget-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

/* ===== Kopīgais "lauka kastes" izskats (vieta / datums / laiks) ===== */
.cb-location-box,
.date-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dcdfe4;
    border-radius: 10px;
    padding: 10px 14px;
    background: #ffffff;
}

.cb-location-box i,
.date-box i {
    color: #1c4187;
    font-size: 15px;
    flex-shrink: 0;
}

.cb-location-box-text,
.date-box-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.cb-location-box-text label,
.date-box-text label {
    font-size: 11px;
    font-weight: 700;
    color: #5c5c5c;
    margin-bottom: 2px;
}

.cb-location-box-text input,
.date-box-text input {
    border: none;
    outline: none;
    width: 100%;
    padding: 0;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #14181c;
}

.cb-location-box-text input::placeholder {
    color: #9aa1a9;
    font-weight: 400;
}

/* ===== Vietas izvēles dropdown (Saņemšanas/Nodošanas vieta) ===== */
.cb-location-autocomplete {
    position: relative;
}

.cb-location-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #dcdfe4;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 30;
}

.cb-location-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.cb-location-option:hover,
.cb-location-option:focus {
    background-color: #f0f2f5;
    outline: none;
}

.cb-location-option-icon {
    color: #1c4187;
    font-size: 15px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.cb-location-option-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.cb-location-option-title {
    font-size: 14px;
    font-weight: 600;
    color: #14181c;
}

.cb-location-option-subtitle {
    font-size: 11px;
    color: #5c5c5c;
    margin-top: 1px;
}

.cb-location-option-waze {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: #1c4187;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cb-location-option-waze:hover {
    background-color: #1c4187;
    color: #ffffff;
}

/* ===== Vietu lauki ===== */
.location-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 100%;
}

/* ===== Datumu/laika lauki ===== */
.date-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 100%;
}

.date-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ===== Pakalpojuma veida izvēle ===== */
.service-type-field {
    flex: 1 1 100%;
}

.service-type-field > label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #14181c;
    margin-bottom: 10px;
}

.service-type-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.service-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 auto;
}

.service-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #dcdfe4;
    border-radius: 30px;
    background: #ffffff;
    color: #5c5c5c;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.service-type-btn i {
    font-size: 13px;
}

.service-type-btn:hover {
    border-color: #1c4187;
    color: #1c4187;
}

.service-type-btn.active {
    background-color: #1c4187;
    border-color: #1c4187;
    color: #ffffff;
}

/* ===== Šoferu izvēle (rādās, ja izvēlēts "Auto ar Šoferi") ===== */
.driver-select-wrapper {
    flex: 1 1 100%;
}

.driver-select-wrapper label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #14181c;
    margin-bottom: 8px;
}

.driver-select-wrapper select {
    width: 100%;
    max-width: 400px;
    padding: 11px 14px;
    border: 1px solid #dcdfe4;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #14181c;
    background: #ffffff;
}

/* ===== Meklēšanas poga ===== */
.search-widget-inner .btn-search {
    flex: 1 1 100%;
}

@media (min-width: 769px) {
    .search-widget-inner .btn-search {
        flex: 0 0 auto;
        margin-left: auto;
        padding: 12px 40px;
    }
}

/* Datorā vietas/datuma lauki stāv rindā, lai izmanto platumu efektīvāk */
@media (min-width: 769px) {
    .location-fields {
        flex-direction: row;
        gap: 16px;
    }

    .cb-location-box {
        flex: 1;
    }

    .date-fields {
        flex-direction: row;
        gap: 16px;
    }

    .date-field-group {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .search-widget-inner {
        padding: 16px;
    }

    .search-widget-form {
        gap: 10px;
    }

    .cb-location-box,
    .date-box {
        padding: 9px 12px;
    }
}
