/* Multi-field option styles */
.multi-field-option {
    margin-bottom: 20px;
}

.multi-field-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.multi-field-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.multi-field-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.multi-field-label .required {
    color: #e02b27;
    margin-left: 3px;
}

.multi-field-control {
    position: relative;
}

.multi-field-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.multi-field-input:focus {
    border-color: #007bdb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 219, 0.25);
}

.multi-field-input.mage-error {
    border-color: #e02b27;
    box-shadow: 0 0 0 2px rgba(224, 43, 39, 0.25);
}

.multi-field-input[disabled] {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Error message styling */
.mage-error-message {
    color: #e02b27;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    line-height: 1.3;
}

/* Select field specific styling */
.multi-field-input.select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 35px;
    appearance: none;
}

/* Textarea specific styling */
.multi-field-input.textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* Responsive design */
@media (min-width: 768px) {
    .multi-field-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .multi-field-item {
        flex: 1;
        min-width: 200px;
    }

    .multi-field-item:not(:last-child) {
        margin-right: 10px;
    }
}

@media (min-width: 1024px) {
    .multi-field-container {
        gap: 25px;
    }

    .multi-field-item {
        min-width: 220px;
    }
}

/* Loading state */
.multi-field-option.loading .multi-field-input {
    opacity: 0.6;
    pointer-events: none;
}

/* Success state for validation */
.multi-field-input.valid {
    border-color: #28a745;
}

.multi-field-input.valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

/* Number input specific styling */
.multi-field-input[type="number"] {
    text-align: right;
}

/* Date/time input styling */
.multi-field-input[type="date"],
.multi-field-input[type="time"] {
    cursor: pointer;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .multi-field-input {
        border-width: 2px;
    }

    .multi-field-input:focus {
        border-color: #000;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5);
    }

    .multi-field-input.mage-error {
        border-color: #ff0000;
        box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .multi-field-input {
        transition: none;
    }
}
