.search-wizard {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 24px;
}

.wizard-header {
    margin-bottom: 24px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--color-mid-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.step {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-mid-grey);
    transition: var(--transition-base);
    position: relative;
    cursor: pointer;
}

    .step:hover:not(.active) {
        border-color: var(--color-mid-grey);
        transform: scale(1.05);
    }

    .step.active {
        background: var(--color-blue);
        border-color: var(--color-blue);
        color: var(--color-white);
        box-shadow: 0 0 0 4px var(--color-blue-light);
        transform: scale(1.1);
    }

    .step.completed {
        background: var(--color-black);
        border-color: var(--color-black);
        color: var(--color-white);
    }

        .step.completed::after {
            content: '✓';
            font-size: 18px;
        }

        .step.completed .step-number {
            display: none;
        }

.step-line {
    flex: 1;
    height: 3px;
    background: var(--color-light-grey);
    margin: 0 12px;
    max-width: 80px;
    transition: var(--transition-base);
    border-radius: 2px;
}

    .step-line.completed {
        background: var(--color-black);
    }

.wizard-step {
    background: var(--color-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-black);
    margin: 0 0 8px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.step-subtitle {
    font-size: 16px;
    color: var(--color-mid-grey);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--color-light-grey);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

    .option-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: transparent;
        transition: var(--transition-base);
    }

    .option-card:hover {
        background: var(--color-white);
        border-color: var(--color-mid-grey);
        box-shadow: var(--shadow-md);
        transform: translateX(4px);
    }

    .option-card.selected {
        background: var(--color-white);
        border-color: var(--color-blue);
        box-shadow: var(--shadow-lg);
    }

        .option-card.selected::before {
            background: var(--color-blue);
        }

.radio-indicator {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--color-mid-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-base);
    background: var(--color-white);
}

.option-card:hover .radio-indicator {
    border-color: var(--color-charcoal);
}

.option-card.selected .radio-indicator {
    border-color: var(--color-blue);
}

.radio-checked {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-blue);
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.option-content {
    flex: 1;
}

.option-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 4px;
}

.option-description {
    font-size: 14px;
    color: var(--color-mid-grey);
}

.option-card.selected .option-label {
    color: var(--color-blue);
}

.option-icon {
    font-size: 32px;
    opacity: 0.8;
}

.help-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-charcoal);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    font-style: normal;
}

    .help-icon:hover {
        background: var(--color-blue);
        transform: scale(1.15);
    }

.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--color-blue-light);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border-left: 4px solid var(--color-blue);
}

.info-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-blue);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-banner span:last-child {
    font-size: 14px;
    color: var(--color-charcoal);
    line-height: 1.6;
}

.button-group {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-light-grey);
}

    .button-group .btn {
        flex: 1;
    }

.expandable-section {
    border: 2px solid var(--color-light-grey);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition-base);
}

    .expandable-section:hover {
        border-color: var(--color-mid-grey);
    }

.expandable-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--color-light-grey);
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-charcoal);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
    text-align: left;
}

    .expandable-header:hover {
        background: #E8E8E8;
    }

.expand-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-mid-grey);
    transition: var(--transition-base);
}

.expandable-header:hover .expand-icon {
    background: var(--color-charcoal);
    color: var(--color-white);
}

.expandable-content {
    padding: 24px 20px;
    background: var(--color-white);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

    .toggle-group .form-label {
        margin-bottom: 0;
        text-transform: none;
        font-size: 15px;
    }

.toggle-buttons {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    border: 2px solid var(--color-light-grey);
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-charcoal);
    cursor: pointer;
    transition: var(--transition-base);
}

    .toggle-btn:hover {
        border-color: var(--color-mid-grey);
        transform: translateY(-1px);
    }

    .toggle-btn.active {
        background: var(--color-black);
        color: var(--color-white);
        border-color: var(--color-black);
    }

.file-upload-area {
    position: relative;
    border: 2px dashed var(--color-mid-grey);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
    background: var(--color-light-grey);
}

    .file-upload-area:hover {
        border-color: var(--color-blue);
        background: var(--color-blue-light);
    }

    .file-upload-area.drag-over {
        border-color: var(--color-blue);
        background: var(--color-blue-light);
        transform: scale(1.02);
    }

    .file-upload-area input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.upload-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-md);
}

.upload-placeholder span:nth-child(2) {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-charcoal);
}

.upload-hint {
    font-size: 13px;
    color: var(--color-mid-grey);
}

.uploaded-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--color-white);
    border: 1px solid var(--color-light-grey);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--color-charcoal);
    box-shadow: var(--shadow-sm);
}

.file-icon {
    font-size: 16px;
}

.file-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.remove-file {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: var(--color-light-grey);
    color: var(--color-charcoal);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

    .remove-file:hover {
        background: var(--color-error);
        color: var(--color-white);
    }



.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 20px;
}

    .loading-container p {
        font-size: 16px;
        color: var(--color-mid-grey);
        margin: 0;
    }

.address-form {
    margin-top: 24px;
}

.select-wrapper {
    position: relative;
}

@media (max-width: 640px) {
    .search-wizard {
        padding: 20px 16px;
    }

    .wizard-step {
        padding: 28px 24px;
        border-radius: var(--radius-lg);
    }

    .step-title {
        font-size: 24px;
    }

    .step-subtitle {
        font-size: 15px;
    }

    .button-group {
        flex-direction: column;
    }

        .button-group .btn {
            width: 100%;
        }

    .option-card {
        padding: 20px;
    }

    .step {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .step-line {
        max-width: 40px;
        margin: 0 8px;
    }

    .help-panel {
        width: 100%;
        max-width: 100%;
    }
}

.success-page {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.success-card {
    background: white;
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 24px;
}

.success-card h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.success-card p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}
/* Professional Redesign Styles */
.custom-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.booking-main-form {
    display: flex;
    flex-direction: column;
}

/* Scoped: only apply on search-folder pages (SearchResults, Book, EngineerProfile)
   so these rules do not override the canonical .content-section / .section-header
   defined in deat-common.css on non-search pages. */
.results-page .content-section,
.ep-container .content-section,
.booking-grid .content-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.results-page .section-header,
.ep-container .section-header,
.booking-grid .section-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.section-title-en {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.section-description {
    font-size: 0.875rem;
    color: #718096;
    margin: 0;
}

.section-content {
    padding: 1.5rem 0;
}

/* Professional Slots */
.prof-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.prof-slot-card {
    border: 2px solid #edf2f7;
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #fff;
}

    .prof-slot-card:hover:not(.is-disabled) {
        border-color: #0070C0;
        background: #f0f7ff;
        transform: translateY(-2px);
    }

    .prof-slot-card.is-selected {
        border-color: #0070C0;
        background: #f0f7ff;
        box-shadow: 0 4px 12px rgba(0, 112, 192, 0.1);
    }

    .prof-slot-card.is-disabled {
        opacity: 0.5;
        background: #f7fafc;
        cursor: not-allowed;
        border-style: dashed;
    }

.slot-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.slot-label-text {
    font-weight: 700;
    font-size: 1rem;
    color: #2d3748;
}

.slot-time-range {
    font-size: 0.875rem;
    color: #718096;
}

.prof-select-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: #0070C0;
    font-size: 1.25rem;
}

.prof-premium-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    color: #b8860b;
    font-size: 1rem;
}

.slot-group-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

/* Summary Sidebar */
.prof-summary-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.summary-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a202c;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.engineer-preview-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
}

.prof-avatar {
    width: 52px;
    height: 52px;
    background: #0070C0;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.prof-name {
    display: block;
    font-weight: 700;
    color: #1a202c;
    font-size: 1rem;
}

.prof-partner {
    display: block;
    font-size: 0.8rem;
    color: #718096;
}

.prof-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prof-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.prof-label {
    color: #718096;
    font-weight: 500;
}

.prof-value {
    font-weight: 600;
    color: #2d3748;
}

    .prof-value.highlight {
        color: #0070C0;
        font-weight: 700;
    }

    .prof-value.pending {
        font-style: italic;
        color: #cbd5e0;
    }

    .prof-value.success {
        color: #38a169;
    }

.prof-pricing-box {
    background: #1a202c;
    border-radius: 10px;
    padding: 1.5rem;
    color: #fff;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
}

.price-val {
    color: #fff;
    font-weight: 600;
}

.premium-highlight {
    color: #ecc94b;
    font-weight: 700;
}

.price-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #2d3748;
    margin-top: 1rem;
    padding-top: 1rem;
}

.total-info {
    display: flex;
    flex-direction: column;
}

    .total-info span {
        font-weight: 700;
        font-size: 1rem;
    }

    .total-info small {
        font-size: 0.7rem;
        color: #718096;
    }

.total-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ecc94b;
    letter-spacing: -0.02em;
}

.security-assurance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: #a0aec0;
}

.sticky-sidebar-card {
    position: sticky;
    top: 2rem;
}

/* Quick Date Selector */
.quick-date-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    border-bottom: 1px solid #edf2f7;
}

    .quick-date-selector > i {
        color: #0070C0;
        font-size: 1.25rem;
    }

.quick-date-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .quick-date-btn:hover {
        border-color: #0070C0;
        color: #0070C0;
        background: #f0f7ff;
    }

    .quick-date-btn.is-active {
        background: #0070C0;
        color: #fff;
        border-color: #0070C0;
    }

.date-picker-inline {
    margin-left: auto;
}

    .date-picker-inline .form-input {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
        width: auto;
        border-radius: 6px;
    }

/* Info Banner */
.info-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
    color: #2c5282;
    line-height: 1.5;
}

    .info-banner .info-icon {
        font-size: 1.25rem; /*color: #3182ce;*/
        flex-shrink: 0;
        margin-top: 1px;
    }

.info-banner-light {
    background: #f7fafc;
    border-color: #e2e8f0;
    color: #4a5568;
}
/*.info-banner-light .info-icon { color: #718096; }*/
.info-banner-warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}
/*.info-banner-warning .info-icon { color: #d97706; }*/

/* Booking Alerts (consistent full-width cards) */
.booking-alert {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.booking-alert-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.booking-alert h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.booking-alert p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.booking-alert-error .booking-alert-icon {
    color: #e53e3e;
}

.booking-alert-error {
    border-color: #fed7d7;
}

.booking-alert-warning .booking-alert-icon {
    color: #d69e2e;
}

.booking-alert-warning {
    border-color: #fefcbf;
}

/* Slot List (vertical layout matching wireframe) */
.slot-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slot-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

    .slot-option:hover:not(.is-disabled) {
        border-color: #0070C0;
        background: #f0f7ff;
    }

    .slot-option.is-selected {
        border-color: #0070C0;
        background: #f0f7ff;
        box-shadow: 0 2px 8px rgba(0,112,192,0.1);
    }

    .slot-option.is-disabled {
        opacity: 0.45;
        cursor: not-allowed;
        border-style: dashed;
    }

.slot-radio {
    font-size: 1.25rem;
    color: #cbd5e0;
    flex-shrink: 0;
}

.slot-option.is-selected .slot-radio {
    color: #0070C0;
}

.slot-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

    .slot-details .slot-label-text {
        font-weight: 700;
        font-size: 1rem;
        color: #2d3748;
    }

    .slot-details .slot-time-range {
        font-size: 0.875rem;
        color: #718096;
    }

.slot-premium-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #b8860b;
    background: #fefce8;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #f6e05e;
    white-space: nowrap;
}

.slot-unavailable-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e53e3e;
    background: #fff5f5;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #feb2b2;
}

/* Pricing Info Tip */
.pricing-info-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #2d3748;
    font-size: 0.8rem;
    color: #a0aec0;
    line-height: 1.4;
}

    .pricing-info-tip i {
        color: #63b3ed;
        font-size: 1rem;
        flex-shrink: 0;
        margin-top: 1px;
    }

/* Generic Utility Redefinition */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    text-align: center;
}

.input-with-icon-left {
    position: relative;
}

    .input-with-icon-left i {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #0070C0;
        font-size: 1.25rem;
    }

    .input-with-icon-left .form-input {
        padding-left: 3rem;
    }

@@media (max-width: 1100px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }

    .booking-sidebar {
        order: -1;
    }

    .sticky-sidebar-card {
        position: static;
    }
}

.results-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px;
    font-family: 'Arial', sans-serif;
}

.results-header {
    margin-bottom: 24px;
}

.results-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
}

.results-subtitle {
    font-size: 16px;
    color: #7f7f7f;
    margin: 0;
}

.results-controls {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #f2f2f2;
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 16px;
}

.edit-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #0070c0;
    background: #ffffff;
    border: 2px solid #0070c0;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .edit-search-btn:hover {
        background: #0070c0;
        color: #ffffff;
    }

.edit-icon {
    font-size: 18px;
    line-height: 1;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-left: auto;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 14px;
    color: #595959;
}

.sort-toggle-group {
    display: flex;
    background: #ffffff;
    border-radius: 100px;
    padding: 4px;
    border: 2px solid #e0e0e0;
}

.sort-toggle-btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #595959;
    background: transparent;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sort-toggle-btn:hover {
        color: #000000;
    }

    .sort-toggle-btn.active {
        background: #000000;
        color: #ffffff;
    }

.vat-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #595959;
}

.rated-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #595959;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .rated-filter-toggle:hover {
        border-color: #0070c0;
        color: #0070c0;
    }

    .rated-filter-toggle input {
        width: 14px;
        height: 14px;
        cursor: pointer;
        margin: 0;
        accent-color: #0070c0;
    }

    .rated-filter-toggle:has(input:checked) {
        background: #0070c0;
        color: #ffffff;
        border-color: #0070c0;
    }

/* Smaller 44x24 slider variant. Scoped under search-only wrappers so it does not
   override the canonical 52x28 .toggle-switch/.toggle-slider from deat-common.css
   on other pages. */
.search-wizard .toggle-switch,
.rc-modal-overlay .toggle-switch,
.results-page .toggle-switch {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    margin-bottom: 0;
}

    .search-wizard .toggle-switch input,
    .rc-modal-overlay .toggle-switch input,
    .results-page .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.search-wizard .toggle-slider,
.rc-modal-overlay .toggle-slider,
.results-page .toggle-slider {
    position: absolute;
    inset: 0;
    background: #e0e0e0;
    border-radius: 24px;
    transition: all 0.2s ease;
}

    .search-wizard .toggle-slider::before,
    .rc-modal-overlay .toggle-slider::before,
    .results-page .toggle-slider::before {
        content: '';
        position: absolute;
        width: 18px;
        height: 18px;
        left: 3px;
        bottom: 3px;
        background: #ffffff;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
    }

.search-wizard .toggle-switch input:checked + .toggle-slider,
.rc-modal-overlay .toggle-switch input:checked + .toggle-slider,
.results-page .toggle-switch input:checked + .toggle-slider {
    background: #0070c0;
}

    .search-wizard .toggle-switch input:checked + .toggle-slider::before,
    .rc-modal-overlay .toggle-switch input:checked + .toggle-slider::before,
    .results-page .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(20px);
    }

.engineer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.engineer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    text-align: center;
    border: 1px solid #e8e8e8;
}

    .engineer-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

.card-partner-name {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.card-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

    .card-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.logo-placeholder {
    font-size: 22px;
    font-weight: 700;
    color: #7f7f7f;
}

.card-engineer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.card-engineer-name {
    font-size: 15px;
    font-weight: 500;
    color: #595959;
}

.card-engineer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .card-engineer-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.avatar-placeholder {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.card-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.price-label {
    font-size: 14px;
    color: #7f7f7f;
}

.price-value {
    font-size: 28px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -1px;
}

.price-quote-badge {
    font-size: 14px;
    font-weight: 600;
    color: #595959;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 100px;
}

.info-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #595959;
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-style: italic;
}

    .info-btn:hover {
        background: #0070c0;
        transform: scale(1.1);
    }

.card-rating-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.stars {
    display: inline-flex;
    gap: 2px;
    font-size: 16px;
    color: #d1d5db;
}

    .stars .ph-fill.ph-star {
        color: #f59e0b;
    }

.rating-text {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-left: 4px;
}

.card-availability {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.avail-icon {
    font-size: 16px;
}

.avail-label {
    font-size: 14px;
    color: #7f7f7f;
}

.avail-dates {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.avail-date-btn {
    padding: 4px 0;
    background: transparent;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .avail-date-btn:hover {
        color: #0070c0;
    }

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
}

    .btn-primary:hover {
        background: #595959;
    }

.btn-secondary {
    background: #ffffff;
    color: #595959;
    border: 2px solid #e0e0e0;
}

    .btn-secondary:hover {
        background: #f2f2f2;
        border-color: #7f7f7f;
    }

.btn-profile {
    background: #7f7f7f;
    color: #ffffff;
}

    .btn-profile:hover {
        background: #595959;
        color: #ffffff;
    }

.btn-book {
    background: #000000;
    color: #ffffff;
}

    .btn-book:hover {
        background: #595959;
        color: #ffffff;
    }

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f2f2f2;
    border-top-color: #0070c0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-results h2 {
    font-size: 24px;
    color: #000000;
    margin: 0 0 8px 0;
}

.no-results p {
    font-size: 16px;
    color: #7f7f7f;
    margin: 0 0 24px 0;
}

/* Rate Card modal (SearchResults.razor) — scoped under .rc-modal-* so
   they do not collide with the shared modal pattern in deat-common.css. */
.rc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.rc-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: rcModalIn 0.2s ease;
}

@@keyframes rcModalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.rc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f2f2f2;
}

    .rc-modal-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #000000;
    }

.rc-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f2f2f2;
    color: #595959;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .rc-modal-close:hover {
        background: #e0e0e0;
    }

.rc-modal-body {
    padding: 24px;
}

    .rc-modal-body h4 {
        margin: 0 0 16px 0;
        font-size: 16px;
        color: #595959;
    }

.vat-toggle-modal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #595959;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f2f2f2;
}

    .vat-toggle-modal .toggle-switch {
        display: inline-block;
        vertical-align: middle;
        flex-shrink: 0;
    }

.rate-card-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
}

    .rate-item:last-child {
        border-bottom: none;
    }

.rate-label {
    font-size: 14px;
    color: #595959;
}

.rate-value {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.rate-card-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: #f2f2f2;
    border-radius: 8px;
    font-size: 13px;
    color: #7f7f7f;
    line-height: 1.5;
}

@@media (max-width: 1024px) {
    .engineer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@@media (max-width: 640px) {
    .results-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .controls-right {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sort-control {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .sort-toggle-group {
        justify-content: center;
    }

        .engineer-grid {
            grid-template-columns: 1fr;
        }
    }

    .flexi-picker-panel {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 20px;
        margin-top: 4px;
    }

    .flexi-window-info {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 600;
        color: #595959;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        padding: 8px 12px;
        margin-bottom: 16px;
    }

    .flexi-time-row {
        display: flex;
        align-items: flex-end;
        gap: 12px;
        flex-wrap: wrap;
    }

    .flexi-field {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
        min-width: 120px;
    }

    .flexi-separator {
        font-size: 13px;
        color: #7f7f7f;
        padding-bottom: 10px;
        white-space: nowrap;
    }

    .flexi-duration-badge {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        font-weight: 700;
        padding: 8px 12px;
        border-radius: 6px;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .flexi-duration-badge.is-valid { color: #16a34a; }
    .flexi-duration-badge.is-invalid { color: #dc2626; }

    .flexi-validation-msg {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        font-size: 13px;
        border-radius: 6px;
        padding: 8px 12px;
        margin-top: 10px;
    }

    .flexi-error {
        background: #fff5f5;
        border: 1px solid #fed7d7;
        color: #c53030;
    }

    .flexi-ok {
        background: #f0fff4;
        border: 1px solid #c6f6d5;
        color: #276749;
    }

    .flexi-blackout-section {
        border-top: 1px solid #e2e8f0;
        padding-top: 16px;
    }

    .flexi-apply-row {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
        border-top: 1px solid #e2e8f0;
        padding-top: 16px;
    }

    .flexi-confirmed-badge {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 600;
        color: #16a34a;
    }

    .flexi-confirmed-badge i {
        font-size: 16px;
    }

    @@media (max-width: 640px) {
        .flexi-time-row {
            flex-direction: column;
            align-items: stretch;
        }

        .flexi-separator {
            padding-bottom: 0;
            text-align: center;
        }

        .flexi-duration-badge {
            padding-bottom: 0;
        }
    }
