.search-form {
    max-width: 600px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);
    padding: 20px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
}

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0;
    color: #666;
    text-align: center;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tab:hover {
    color: #333;
    background-color: #f5f5f5;
}

.tab.active {
    color: #d50000;
    background-color: transparent;
}

.tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #d50000;
    border-radius: 3px 3px 0 0;
}

input::placeholder {
    color: #222222;
    opacity: 1;
    transition: color 0.3s ease;
}

input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    /* left padding for icon */
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

input:focus::placeholder {
    color: #ccc !important;
}

.woocommerce-js input[type=text]:focus {
    border-color: transparent !important;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ccc;
    padding: 10px 12px 10px 12px;
    /* padding inside container */
    border-radius: 8px;
    margin-bottom: 15px;
}

.input-group .icon {
    position: absolute;
    margin-left: 2%;
    left: 12px;
    color: #999;
    font-size: 18px;
    /* slightly bigger if needed */
    pointer-events: none;
}

.input-group input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 14px;
    color: #333;
    padding-left: 40px;
    /* Increase padding left here */
}

.btn-submit {
    background-color: #d50000;
    border: none;
    color: white;
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 1.2px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #b00000;
}

.message-area {
    margin-top: 20px;
    min-height: 40px;
    text-align: center;
    font-weight: 600;
    color: #d50000;
    font-size: 16px;
    display: none;
    /* hidden by default */
}

/* Loading spinner */
.loading-spinner {
    margin: 0 auto;
    border: 4px solid #f3f3f3;
    /* Light grey */
    border-top: 4px solid #d50000;
    /* Red */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

#brand-not-found-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#brand-not-found-dialog>div {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: Arial, sans-serif;
}

#brand-not-found-dialog p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

#brand-not-found-dialog button {
    cursor: pointer;
    border-radius: 8px;
    border: none;
    padding: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#btn-continue-size {
    background-color: #d50000;
    color: white;
    flex: 1;
    margin-right: 10px;
}

#btn-continue-size:hover {
    background-color: #b00000;
}

#btn-go-shop {
    background-color: #777;
    color: white;
    flex: 1;
}

#btn-go-shop:hover {
    background-color: #555;
}

#btn-close-dialog {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

.shop-registration-search-form {
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
    font-family: Arial, sans-serif;
}

.input-wrapper {
    max-width: 100;
    position: relative;
    flex: 1;
}

.shop-registration-search-form input[type="text"] {
    width: 100%;
    padding: 12px 44px 12px 40px;
    border: 1px solid #ccc;
    border-radius: 6px !important;
    font-size: 14px;
    color: #222;
    box-sizing: border-box;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    pointer-events: none;
}

.btn-submit-2 {
    width: 50%;
    background-color: #d50000;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.1px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #b00000;
}

/* Spinner animation */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Results grid if you keep it visible */
.results-grid {
    margin-top: 30px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}