﻿.maestro-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.maestro-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
}

@media (max-width: 992px) {

    .maestro-form-grid {
        grid-template-columns: 1fr;
    }
}

.maestro-form-row {
    display: flex;
    gap: 1rem;
}

.maestro-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.maestro-form-group-small {
    flex: 0 0 140px;
}

.maestro-form-group label {
    font-size: .82rem;
    font-weight: 500;
    color: var(--maestro-text-light);
    letter-spacing: .02em;
}

.maestro-form-group.span-2 {
    grid-column: span 2;
}

.maestro-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--maestro-text);
}

.maestro-form-control {
    width: 100%;
    height: 44px;
    padding: 0 .9rem;
    border: 1px solid var(--maestro-border);
    border-radius: var(--maestro-radius);
    background: #fff;
    color: var(--maestro-text);
    font-size: .95rem;
    transition: all .2s ease;
}

    .maestro-form-control:focus {
        outline: none;
        border-color: var(--maestro-primary);
        box-shadow: 0 0 0 4px rgba(37,99,235,.10);
    }

    .maestro-form-control::placeholder {
        color: var(--maestro-text-light);
    }

.maestro-form-select {
    width: 100%;
    height: 44px;
    padding: 0 .9rem;
    padding-right: 2.5rem;
    border: 1px solid var(--maestro-border);
    border-radius: var(--maestro-radius);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cpath fill='%2364748b' d='M4 6l5 6 5-6'/%3E%3C/svg%3E") no-repeat right .85rem center;
    appearance: none;
    color: var(--maestro-text);
    font-size: .95rem;
    cursor: pointer;
    transition: .2s;
}

    .maestro-form-select:focus {
        outline: none;
        border-color: var(--maestro-primary);
        box-shadow: 0 0 0 4px rgba(37,99,235,.10);
    }

.maestro-textarea {
    min-height: 70px;
    padding: .9rem;
    resize: vertical;
}

.maestro-file-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .maestro-file-picker span {
        color: var(--maestro-text-light);
        font-size: .9rem;
    }

.maestro-file-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.maestro-empty-files {
    display: flex;
    align-items: center;
    height: 44px;
    color: var(--maestro-text-light);
}

.maestro-selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.maestro-file-tag {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .75rem;
    border: 1px solid var(--maestro-border);
    border-radius: 999px;
    background: #f8fafc;
    font-size: .9rem;
}

.maestro-file-remove {
    cursor: pointer;
    transition: .2s;
}

    .maestro-file-remove:hover {
        color: var(--maestro-danger);
    }

.maestro-form-help {
    font-style: oblique;
    font-size: small;
    color: darkgray;
    margin-top: 14px;
}

.maestro-validation {
    font-size: .8rem;
    color: var(--maestro-danger);
}

    .maestro-validation ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .maestro-validation li {
        margin: 0;
    }

.validation-summary-valid {
    display: none;
}

.maestro-input-colli {
    max-width: 70px;
}

.maestro-location-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.maestro-location {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.maestro-location-summary {
    margin-top: .75rem;
    margin-bottom: 1.25rem;
    font-size: .9rem;
    line-height: 1.4;
}

.maestro-location-summary-name {
    font-weight: 600;
    padding-bottom: 5px;
}

.maestro-location-summary-address {
    color: var(--bs-secondary-color);
    font-size: .92rem;
}

.maestro-invalid {
    border-color: var(--bs-danger) !important;
    box-shadow: 0 0 0 .15rem rgba(var(--bs-danger-rgb), .15);
}

.maestro-validation-message {
    color: var(--bs-danger);
    font-size: .85rem;
    margin-top: .35rem;
}

/* ==========================================================
   Input Group
   ========================================================== */

.maestro-input-group {
    position: relative;
}

    .maestro-input-group .maestro-form-control {
        padding-left: 2.75rem;
        padding-right: 2.75rem;
    }

.maestro-input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--maestro-text-light);
    pointer-events: none;
}

.maestro-input-action {
    position: absolute;
    top: 50%;
    right: .9rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--maestro-text-light);
    cursor: pointer;
    transition: color .2s ease;
}

    .maestro-input-action:hover {
        color: var(--maestro-primary);
    }
