/**
 * Header Search Widget Styles
 */

.nef-header-search-container {
    width: 100%;
    margin: 0 auto;
}

.nef-header-search-form {
    display: flex;
    gap: 0;
    align-items: stretch;
}

/* Search Type Dropdown */
.nef-search-type {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    color: #4F4F4F;
    cursor: pointer;
    min-width: 130px;
    transition: all 0.3s ease;
}

.nef-search-type:focus {
    outline: none;
    border-color: #D5B22A;
    box-shadow: 0 0 0 3px rgba(213, 178, 42, 0.1);
}

/* Search Input Wrapper */
.nef-search-input-wrapper {
    display: flex;
    flex: 1;
    position: relative;
}

.nef-search-input-wrapper input[type="text"],
.nef-search-input-wrapper input[type="number"],
.nef-search-input-wrapper input[type="email"],
.nef-search-input-wrapper input[type="url"],
.nef-search-input-wrapper input[type="password"],
.nef-search-input-wrapper input[type="search"],
.nef-search-input-wrapper input[type="reset"],
.nef-search-input-wrapper input[type="tel"],
.nef-search-input-wrapper input[type="date"],
.nef-search-input-wrapper select,
.nef-search-input-wrapper textarea {
    height: 48px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px 0px 0px 8px;
    box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.05);
    color: var(--ast-form-input-text,#475569);
}

.nef-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 300px;
    height: 48px;
}

.nef-search-input:focus {
    outline: none;
    border-color: #D5B22A;
    box-shadow: 0 0 0 3px rgba(213, 178, 42, 0.1);
    border-right: none;
}

.nef-search-input::placeholder {
    color: #9ca3af;
}

/* Search Submit Button */
.nef-search-submit {
    padding: 14px 32px;
    background: #D5B22A;
    color: #ffffff;
    border: 2px solid #D5B22A;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nef-search-submit:hover {
    background: #c4a225;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nef-search-submit:active {
    transform: translateY(0);
}

/* Compact Mode (Icon Only) */
.nef-search-submit.nef-search-compact {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nef-search-submit.nef-search-compact svg {
    width: 20px;
    height: 20px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nef-header-search-form {
        flex-direction: column;
    }

    .nef-search-type {
        width: 100%;
    }

    .nef-search-input-wrapper {
        width: 100%;
    }

    .nef-search-input {
        border-radius: 6px 0 0 6px;
    }

    .nef-search-submit {
        border-radius: 0 6px 6px 0;
    }
}

/* Compact Mobile Layout */
@media (max-width: 480px) {
    .nef-header-search-container {
        max-width: 100%;
    }

    .nef-search-submit:not(.nef-search-compact) {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* For Header/Navigation Integration */
.site-header .nef-header-search-container,
.navigation .nef-header-search-container {
    /* Width controlled by parent container / Elementor */
}

/* Minimal Variant (for tight spaces) */
.nef-header-search-minimal .nef-header-search-form {
    gap: 4px;
}

.nef-header-search-minimal .nef-search-type {
    min-width: 100px;
    font-size: 13px;
    padding: 8px 10px;
}

.nef-header-search-minimal .nef-search-input {
    font-size: 13px;
    padding: 8px 12px;
}

.nef-header-search-minimal .nef-search-submit {
    font-size: 13px;
    padding: 8px 16px;
}
