/* =========================================================
   FORM FIELDS
   Shared search/select/toolbar field styling.
========================================================= */

.control-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #674e56;
}

.control-input,
.control-select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(90, 0, 17, .14);
    background: var(--theme-card-strong, rgba(255, 255, 255, .94));
    color: var(--text, #1a0a0f);
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .05);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.control-input::placeholder {
    color: #927b82;
    opacity: 1;
}

.control-input:focus,
.control-select:focus {
    outline: none;
    border-color: var(--yellow2, #f6c74c);
    box-shadow: 0 0 0 4px rgba(246, 199, 76, .24), 0 10px 20px rgba(15, 23, 42, .05);
}

.control-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23674e56' d='M6 7.4.8 2.2 2.2.8 6 4.6 9.8.8 11.2 2.2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}

.search-field {
    position: relative;
}

.search-field .control-input {
    border-radius: 999px;
    padding-left: 42px;
    padding-right: 46px;
}

.search-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7d6970;
    opacity: .72;
    font-size: 0;
    pointer-events: none;
}

.search-field-icon::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' fill='none' stroke='%237d6970' stroke-width='2'/%3E%3Cpath d='M12.8 12.8L17 17' fill='none' stroke='%237d6970' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.search-field-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(90, 0, 17, .12);
    background: rgba(255, 255, 255, .72);
    color: var(--maroon, #5a0011);
    font-size: 0;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
    cursor: pointer;
}

.search-field-clear::before {
    content: '\00d7';
    font-size: 18px;
    line-height: 1;
}

.search-field-clear:hover {
    border-color: rgba(246, 199, 76, .42);
    background: rgba(255, 255, 255, .92);
}
