/* ===== 헤더 검색폼 (사업자번호 입력) ===== */
#header .header-search-form {
    flex: 1;
    min-width: 0;
    max-width: 500px;
    height: 44px;
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 150px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    box-sizing: border-box;
}
#header .header-search-form::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, #a78bfa, #818cf8, #60a5fa, #f472b6, #c084fc, #818cf8);
    background-size: 300% 300%;
    animation: headerAuroraShift 4s ease infinite;
    z-index: -1;
    opacity: 0.35;
}
@keyframes headerAuroraShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}
#header .header-search-form:focus-within {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
#header .header-search-form:focus-within::before {
    opacity: 0.7;
}
#header .header-search-input {
    width: 100%;
    height: 100%;
    padding: 0 140px 0 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    color: #222;
    background: transparent;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
#header .header-search-input::placeholder {
    color: #999;
}
@keyframes headerBtnAurora {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}
#header .header-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    height: 34px;
    background: linear-gradient(135deg, #a78bfa, #818cf8, #60a5fa, #f472b6, #c084fc);
    background-size: 300% 300%;
    animation: headerBtnAurora 4s ease infinite;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(167,139,250,0.45);
    transition: box-shadow 0.2s, transform 0.2s;
    font-family: inherit;
}
#header .header-search-btn:hover {
    box-shadow: 0 5px 18px rgba(167,139,250,0.65);
    transform: translateY(-50%) scale(1.02);
}
/* 컨텍스트별 사이즈 */
#header .header-search-btn .ai-magic-wand { width: 14px; height: 14px; }

/* 모바일: 검색바 숨김 */
@media (max-width: 768px) {
    #header .header-search-form { display: none; }
}
@media (min-width: 769px) and (max-width: 900px) {
    #header .header-search-form {
        margin-left: 16px;
        max-width: none;
    }
    #header .header-search-input {
        font-size: 13px;
        padding: 0 120px 0 12px;
    }
    #header .header-search-btn {
        font-size: 12px;
        padding: 0 12px;
        height: 30px;
    }
}
@media (min-width: 901px) and (max-width: 1100px) {
    #header .header-search-form {
        margin-left: 40px;
        max-width: none;
    }
}
@media (max-width: 480px) {
    #header .header-search-form { display: none; }
}
