form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

input, select {
    all: unset;
    box-sizing: border-box;
    width: 100%;
}

.field-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 12px;
    color: var(--brand-text);
}

.form-input, select.form-input {
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
    padding: 9px 12px;
    font-size: 14px;
}

select.form-input {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

select.form-input:disabled {
    cursor: not-allowed;
}

.form-input:focus, select.form-input:focus {
    border-color: var(--brand-primary);
}

.form-input:disabled, select.form-input:disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.form-display-error {
    display: none;
    font-size: 11px;
    color: var(--brand-danger);
}

.form-legend {
    font-size: 11px;
    color: #888;
    background: var(--brand-bg);
    border-radius: 8px;
    padding: 8px 10px;
}

.form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
    box-sizing: border-box;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    min-height: 35px;
}

.form-btn-primary {
    background: linear-gradient(180deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
    color: white;
}

.form-btn-secondary {
    background: transparent;
    border: 1px solid #ccc;
    color: var(--brand-text);
}

.btn-100p {
    width: 100%;
    box-sizing: border-box;
}
