/* Shared “choice box” styling for frontend forms (main content only).
   Goal: make selects/inputs look like the hero search button-like cases,
   without impacting the header search bar. */

main select,
main input:not([type]),
main input[type="text"],
main input[type="search"],
main input[type="email"],
main input[type="tel"],
main input[type="number"],
main textarea {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    color: var(--light) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04)) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

/* Override theme-specific select/input styles (more specific selectors) */
main .form-group input,
main .form-group textarea,
main .form-group select,
main .sort-options select,
main .price-range input {
    color: var(--light) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04)) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

main textarea {
    min-height: 120px;
    resize: vertical;
}

main select:hover,
main input:not([type]):hover,
main input[type="text"]:hover,
main input[type="search"]:hover,
main input[type="email"]:hover,
main input[type="tel"]:hover,
main input[type="number"]:hover,
main textarea:hover {
    border-color: rgba(255, 107, 0, 0.55) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35) !important;
    transform: translateY(-1px);
}

main .form-group input:hover,
main .form-group textarea:hover,
main .form-group select:hover,
main .sort-options select:hover,
main .price-range input:hover {
    border-color: rgba(255, 107, 0, 0.55) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35) !important;
    transform: translateY(-1px);
}

main select:focus,
main input:not([type]):focus,
main input[type="text"]:focus,
main input[type="search"]:focus,
main input[type="email"]:focus,
main input[type="tel"]:focus,
main input[type="number"]:focus,
main textarea:focus {
    outline: none;
    border-color: rgba(255, 107, 0, 0.85) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18), 0 10px 30px rgba(0,0,0,0.35) !important;
}

main .form-group input:focus,
main .form-group textarea:focus,
main .form-group select:focus,
main .sort-options select:focus,
main .price-range input:focus {
    outline: none !important;
    border-color: rgba(255, 107, 0, 0.85) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18), 0 10px 30px rgba(0,0,0,0.35) !important;
}

main select:disabled,
main input:disabled,
main textarea:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Select caret (no wrapper needed) */
main select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px 20px !important;
}

main .form-group select,
main .sort-options select {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-right: 44px !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px 20px !important;
}

/* Dropdown list (options) */
main select option,
main select optgroup {
    background: #ffffff;
    color: #111111;
}

/* Hover styling for option rows (browser support varies) */
main select option:hover,
main select option:focus {
    background: #111111;
    color: #ffffff;
}

/* Don’t fight the hero search layout (it has its own tighter inner padding). */
.hero-search select,
.hero-search input[type="text"] {
    padding: 2px 0;
    border: none;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.hero-search select:hover,
.hero-search input[type="text"]:hover,
.hero-search select:focus,
.hero-search input[type="text"]:focus {
    border: none;
    background: transparent;
    box-shadow: none;
    transform: none;
}
