/* Professional Frontend Styles - Mono Collection Plugin */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f1f5f9;
    --accent-color: #10b981;
    --accent-dark: #059669;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --error-color: #ef4444;
    --error-light: #fef2f2;
    --success-color: #10b981;
    --success-light: #d1fae5;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --border-focus: #3b82f6;
    --background: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

* {
    box-sizing: border-box;
}

#mono-booking-form-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.mono-form-card {
    background: var(--background);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.6s ease-out;
}

.mono-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Header Section */
.form-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    margin-bottom: 25px;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.form-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.header-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
}

/* Warning Box */
.mono-warning-box {
    margin: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--warning-light), #fef7cd);
    border: 1px solid var(--warning-color);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.mono-warning-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--warning-color);
}

.warning-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.warning-icon {
    flex-shrink: 0;
    color: var(--warning-color);
    margin-top: 0.125rem;
}

.warning-text {
    color: #92400e;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* Form Sections */
.professional-form {
    padding: 0 2rem 2rem;
}

.form-section {
    margin-bottom: 3rem;
}

.mono-form-section {
    position: relative;
    padding: 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mono-form-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mono-form-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 6px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.mono-form-section--personal::before {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.mono-form-section--monos::before {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-dark));
}

.mono-form-section--pickup::before {
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary-color);
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.section-icon {
    font-size: 1.5rem;
    filter: grayscale(1);
    opacity: 0.8;
}

/* Form Rows */
.form-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.two-columns {
    grid-template-columns: 1fr 1fr;
}

/* Form Groups */
.mono-form-group {
    position: relative;
}

.mono-form-group label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.label-text {
    flex: 1;
}

.required {
    color: var(--error-color);
    font-weight: 700;
}

/* Field Description */
.field-description {
    margin: 0.5rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    font-style: italic;
}

/* Input Wrappers */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--background);
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
    transform: translateY(-1px);
}

.input-wrapper input.error,
.input-wrapper textarea.error {
    border-color: var(--error-color);
    background: var(--error-light);
    animation: shake 0.5s ease-in-out;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
    color: var(--border-focus);
}

.textarea-icon {
    top: 1rem;
    transform: none;
}

/* Select Wrappers */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--background);
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
    transform: translateY(-1px);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.select-wrapper:focus-within .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Monos Section */
.monos-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 20px
}

#monos-container {
    margin-bottom: 2rem;
}

.mono-item {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mono-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mono-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.mono-item-header {
    margin-bottom: 1rem;
}

.mono-number {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mono-item-fields {
    display: grid;
    /* descrição pode encolher sem rebentar o layout */
    grid-template-columns: minmax(96px,120px) minmax(0,1fr) max-content;
    gap: 1rem;
    /* alinha todos os itens pelo fundo do grid */
    align-items: end;
}


.quantity-field,
.description-field {
    display: flex;
    flex-direction: column;
}

/* para a coluna da descrição poder encolher no grid */
.description-field { min-width: 0; }


.quantity-field {
    min-width: 100px;
}

.quantity-field label,
.description-field label {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quantity-field input,
.description-field input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.quantity-field input:focus,
.description-field input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgb(59 130 246 / 0.1);
}

.mono-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    /* fixa o botão no canto inferior direito do grid */
    justify-self: end;
    align-self: end;
}

.mono-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.mono-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.mono-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent-dark), #047857);
}

.mono-add-btn:active {
    transform: translateY(0);
}

/* Field Errors */
.field-error {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* reCAPTCHA v2 – centrar no formulário */
.form-actions .g-recaptcha {
    display: inline-block;   /* permite centrar pelo text-align do pai */
    margin-bottom: 2rem;     /* opcional: espaço antes do botão */
}

/* RGPD – bloco de consentimento */
.gdpr-consent {
    margin: 2rem 2rem 1rem;   /* ajusta aqui a margem do texto no form */
}


.mono-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    min-width: 240px;
    min-height: 60px;
}

.mono-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.mono-submit-btn:hover::before {
    left: 100%;
}

.mono-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
}

.mono-submit-btn:active {
    transform: translateY(-1px);
}

.mono-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon {
    transition: transform 0.2s ease;
}

.mono-submit-btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

.mono-item.error-item {
    border-color: var(--error-color);
    background: linear-gradient(135deg, var(--error-light), #fef2f2);
    animation: shake 0.5s ease-in-out;
}

.mono-item.error-item::before {
    background: var(--error-color);
}

.mono-message {
    margin: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.mono-message.success {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid var(--success-color);
}

.mono-message.error {
    background: var(--error-light);
    color: #991b1b;
    border: 1px solid var(--error-color);
}

/* === AUTOCOMPLETE E MAPAS (DUAL SYSTEM) === */

/* Container do campo de morada */
.address-input-container {
    position: relative;
    width: 100%;
}

/* Botão de localização dentro do input */
.location-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
}

.location-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-50%) scale(1.1);
}

.location-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.location-btn.loading {
    animation: pulse 1.5s infinite;
}

/* Ajustar para textarea no pickup */
.address-input-container[data-map-type="pickup"] .location-btn {
    top: 1rem;
    transform: none;
}

.address-input-container[data-map-type="pickup"] .location-btn:hover {
    transform: scale(1.1);
}

.address-input-container[data-map-type="pickup"] .location-btn:active {
    transform: scale(0.95);
}

/* Lista de sugestões do autocomplete */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: none;
}

.address-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background: var(--secondary-color);
}

.suggestion-item.no-results {
    color: var(--text-secondary);
    font-style: italic;
    cursor: default;
}

.suggestion-item.no-results:hover {
    background: transparent;
}

.suggestion-icon {
    color: var(--accent-color);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
}

.suggestion-main {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.suggestion-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Container do mapa */
.map-container {
    margin-top: 1rem;
    background: var(--secondary-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-header {
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.toggle-map-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-map-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mapa propriamente dito */
.address-map {
    height: 300px;
    width: 100%;
    position: relative;
}

.map-instructions {
    padding: 1rem;
    background: var(--background);
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.map-instructions p {
    margin: 0;
}

/* Diferenciar os mapas visualmente */
#residence-map {
    border: 2px solid var(--primary-color);
}

#pickup-map {
    border: 2px solid var(--accent-color);
}

.residence-instructions {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-left: 4px solid var(--primary-color);
}

.pickup-instructions {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-left: 4px solid var(--accent-color);
}

/* Estados de loading */
.address-input-container.loading .input-wrapper input,
.address-input-container.loading .input-wrapper textarea {
    background-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Customização dos controles do Leaflet */
.leaflet-control-container .leaflet-top.leaflet-left {
    top: 10px;
    left: 10px;
}

.leaflet-control-zoom {
    border-radius: var(--radius-sm) !important;
    border: none !important;
    box-shadow: var(--shadow-md) !important;
}

.leaflet-control-zoom a {
    background: var(--background) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-zoom a:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.05);
}

/* Diferenciar controles por mapa */
#residence-map .leaflet-control-zoom a:hover {
    background: var(--primary-color) !important;
}

#pickup-map .leaflet-control-zoom a:hover {
    background: var(--accent-color) !important;
}

/* Popup customizado do mapa */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color) !important;
}

.leaflet-popup-content {
    font-family: inherit !important;
    color: var(--text-primary) !important;
    line-height: 1.5 !important;
}

.custom-marker-popup {
    max-width: 250px;
}

.popup-address {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.popup-instructions {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Diferenciar popups por tipo de mapa */
#residence-map .popup-address {
    color: var(--primary-color);
}

#pickup-map .popup-address {
    color: var(--accent-color);
}

/* Estados de erro e sucesso para geolocalização */
.geolocation-error,
.geolocation-success {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    font-size: 0.875rem;
    animation: slideDown 0.3s ease;
}

.geolocation-error {
    background: var(--error-light);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.geolocation-success {
    background: var(--success-light);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* Diferenciar mensagens por tipo */
.geolocation-error[data-type="residence"] {
    border-left-color: var(--primary-color);
}

.geolocation-success[data-type="residence"] {
    border-left-color: var(--primary-color);
}

.geolocation-error[data-type="pickup"] {
    border-left-color: var(--accent-color);
}

.geolocation-success[data-type="pickup"] {
    border-left-color: var(--accent-color);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    30% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .monos-section {
       padding: 0px !important;
       background:none;
       border:none;
    }
    
.gdpr-consent {
    margin: 0rem 2rem 1rem;   /* ajusta aqui a margem do texto no form */
}
    
    .mono-form-section {

    margin-top: 20px;
    margin-bottom: 20px !important;
    }
    
    .form-actions {
    text-align: center;
    margin-top: 0px;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: 10px;
}

    
    .has-global-padding {
    padding-right: 15px;
    padding-left: 15px;
}

.mono-item { padding: 1rem; }                /* menos “ar” no cartão */
.mono-item-header { margin-bottom: .75rem; } /* compactar cabeçalho */

    
    #mono-booking-form-container {
        margin: 1rem auto;
        padding: 0 1rem;
        margin-top: 25px;
    }
    
    .mono-form-card {
        border-radius: var(--radius-md);
        box-shadow:none
    }
    
    .form-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .professional-form {
        padding: 0 1.5rem 1.5rem;
    }
    
    .form-row.two-columns {
        grid-template-columns: 1fr;
    }
    
    .mono-item-fields {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
        /* Mobile: a lista fica por baixo e ocupa toda a largura */
    .description-field .mono-preset-helper {
        flex-direction: column;
        align-items: stretch;
        gap: .375rem;
    }
    .description-field .mono-preset-helper small {
        display: block;        /* quebra linha para o rótulo */
    }
    .description-field .mono-preset-select {
        min-width: 0;
        width: 100%;
        font-size: 1rem;
        padding: .625rem .75rem;
    }

    
    .mono-remove-btn {
        justify-self: end;
        margin-top: 1rem;
    }
    
    .mono-submit-btn {
       
        min-width: unset;
    }
    
    .monos-section {
        padding: 1.5rem;
    }
    
    /* Responsivo para mapas */
    .address-map {
        height: 250px;
    }
    
    .map-header {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .toggle-map-btn {
        width: 100%;
    }
    
    .suggestion-item {
        padding: 0.75rem;
    }
    
    .address-suggestions {
        max-height: 150px;
    }
    
    /* Ajustar botões de localização em mobile */
    .location-btn {
        width: 28px;
        height: 28px;
        right: 0.75rem;
    }
    
    .location-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .address-input-container[data-map-type="pickup"] .location-btn {
        top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header-icon {
        width: 60px;
        height: 60px;
    }
    
    .form-header h2 {
        font-size: 1.25rem;
    }
    
    .input-wrapper input,
    .input-wrapper textarea {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .input-icon {
        left: 0.875rem;
    }
    
    .address-map {
        height: 200px;
    }
    
    .location-btn {
        width: 24px;
        height: 24px;
        right: 0.5rem;
    }
    
    .location-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .address-input-container[data-map-type="pickup"] .location-btn {
        top: 0.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === COLLECTOR VIEW === */
.mono-collector-view {
    max-width: 100%;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mono-collector-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mono-collector-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.mono-collector-date {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.mono-collector-empty {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #0369a1;
    font-size: 1.1rem;
}

.mono-collector-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mono-collector-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.mono-collector-card.is-completed {
    opacity: 0.75;
}

.mono-collector-card.is-expanded {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Header - sempre visível */
.mono-collector-card-header {
    background: #f9fafb;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.mono-collector-card-header:hover {
    background: #f3f4f6;
}

.mono-collector-card-header:active {
    background: #e5e7eb;
}

.mono-collector-summary {
    flex: 1;
}

.mono-collector-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mono-collector-name strong {
    font-size: 1.1rem;
    color: #1f2937;
}

.mono-collector-quick-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
}

/* Status pill */
.mono-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 12px;
    border-radius: 10px;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* Cores alinhadas com os botões de ação */
.mono-status-recolhido,
.mono-status-recolhida {               /* admin usa "recolhida" */
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.mono-status-recolhido_parcialmente {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.mono-status-nao_recolhido,
.mono-status-cancelada {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.mono-status-confirmada {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

.mono-status-pendente {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}


.mono-quick-monos {
    color: #6b7280;
    font-weight: 500;
}

.mono-quick-phone {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: #e0f2fe;
    border-radius: 6px;
    transition: all 0.2s;
}

.mono-quick-phone:hover {
    background: #0ea5e9;
    color: white;
}

/* Indicador de colapso */
.mono-collapse-indicator {
    margin-left: 1rem;
    color: #9ca3af;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mono-collector-card.is-expanded .mono-collapse-indicator {
    transform: rotate(180deg);
}

/* Body - colapsável */
.mono-collector-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mono-collector-card.is-expanded .mono-collector-card-body {
    max-height: 2000px; /* Valor alto para acomodar qualquer conteúdo */
}

.mono-collector-card-body > * {
    padding: 1rem;
}

.mono-collector-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mono-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mono-info-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

.mono-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mono-item-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.mono-gps-link {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
}

.mono-gps-link:hover {
    background: #059669;
}

.mono-collector-notes-display {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 0.75rem;
    margin: 0 1rem 1rem 1rem;
    border-radius: 4px;
}

.mono-collector-notes-display strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #92400e;
}

.mono-collector-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
    padding-top: 0;
}

.mono-action-btn {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mono-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mono-action-recolhido {
    background: #10b981;
    color: white;
}

.mono-action-recolhido:not(:disabled):hover {
    background: #059669;
}

.mono-action-recolhido:not(:disabled):active {
    background: #047857;
}

.mono-action-parcial {
    background: #f59e0b;
    color: white;
}

.mono-action-parcial:not(:disabled):hover {
    background: #d97706;
}

.mono-action-parcial:not(:disabled):active {
    background: #b45309;
}

.mono-action-nao-recolhido {
    background: #ef4444;
    color: white;
}

.mono-action-nao-recolhido:not(:disabled):hover {
    background: #dc2626;
}

.mono-action-nao-recolhido:not(:disabled):active {
    background: #b91c1c;
}

/* Modal */
.mono-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.mono-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.mono-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.mono-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mono-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.mono-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 2rem;
    height: 2rem;
}

.mono-modal-body {
    padding: 1.5rem;
}

.mono-modal-body textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.mono-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Botões do modal - look moderno */
.mono-modal-footer .mono-modal-cancel,
.mono-modal-footer .mono-modal-submit {
    appearance: none;
    border-radius: 10px;
    padding: .65rem 1.1rem;
    font-weight: 700;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, opacity .12s ease;
}

.mono-modal-footer .mono-modal-cancel {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-color: #e5e7eb !important;
}
.mono-modal-footer .mono-modal-cancel:hover {
    background: #e5e7eb !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.mono-modal-footer .mono-modal-submit {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}
.mono-modal-footer .mono-modal-submit:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.mono-modal-footer .mono-modal-cancel:active,
.mono-modal-footer .mono-modal-submit:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.mono-modal-footer .mono-modal-cancel:disabled,
.mono-modal-footer .mono-modal-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}


/* Responsive adjustments */
@media (min-width: 640px) {
    .mono-collector-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .mono-collector-view {
        padding: 0.5rem;
    }
    
    .mono-collector-header {
        padding: 1rem;
    }
    
    .mono-collector-header h2 {
        font-size: 1.25rem;
    }
    
    .mono-collector-quick-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.mono-login-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s;
}

.mono-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}



/* Presets de descrição (frontend) */
.description-field .mono-preset-helper {
    margin-top: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-secondary);
    font-size: .875rem;
     min-width: 0;
}

.description-field .mono-preset-helper small {
    margin: 0;
    line-height: 1.2;
}

.description-field .mono-preset-select {
    -webkit-appearance: none;   /* iOS/Safari */
    appearance: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: .5rem 2rem .5rem .75rem;  /* espaço p/ seta */
    font-size: .875rem;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    /*min-width: 220px;*/

    /* seta discreta à direita */
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .6rem center;
    background-size: 16px 16px;
     width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.description-field .mono-preset-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}


.description-field .mono-preset-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

