/* ========================================
   Modal de Proposta - Padrão Wizard
   Baseado em docs/Padrao css/cssforms.md
   ======================================== */

/* Modal Content - Padrão Kavo Card */
.proposal-modal-content {
    border: 1px solid #ececec;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

/* Header */
.proposal-modal-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.proposal-modal-title {
    font-family: 'Manrope', 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
    letter-spacing: -0.02em;
}

.proposal-modal-header .btn-close {
    opacity: 0.5;
    transition: opacity 0.15s;
}

.proposal-modal-header .btn-close:hover {
    opacity: 1;
}

/* Body */
.proposal-modal-body {
    padding: 1.75rem;
    background: #ffffff;
}

/* Card do Veículo */
.proposal-vehicle-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.proposal-vehicle-card__img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.proposal-vehicle-card__info {
    flex: 1;
    min-width: 0;
}

.proposal-vehicle-card__title {
    font-family: 'Manrope', 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111111;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.proposal-vehicle-card__price {
    font-family: 'Manrope', 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0F766E;
}

/* Field Groups - Padrão Wizard */
.proposal-field-group {
    margin-bottom: 1.25rem;
}

.proposal-field-group:last-of-type {
    margin-bottom: 1.5rem;
}

.proposal-label {
    font-family: 'Manrope', 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 0.5rem;
    display: block;
}

.proposal-label--optional {
    font-weight: 500;
    color: #4b5563;
}

/* Input Wrapper - Padrão Kavo Field */
.proposal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: border-color 0.16s ease;
    overflow: hidden;
}

.proposal-input-wrapper:hover,
.proposal-input-wrapper:focus-within {
    border-color: #a3aab5;
}

.proposal-input-prefix {
    font-family: 'Manrope', 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    padding: 0 0.75rem;
    background: transparent;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    height: 100%;
}

.proposal-input {
    flex: 1;
    min-height: 42px;
    padding: 0.62rem 0.85rem;
    font-family: 'Manrope', 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

.proposal-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.proposal-input:focus {
    outline: none;
    box-shadow: none;
}

/* Textarea - Padrão Wizard */
.proposal-textarea {
    width: 100%;
    min-height: 90px;
    padding: 0.75rem 0.85rem;
    font-family: 'Manrope', 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    resize: vertical;
    transition: border-color 0.16s ease;
}

.proposal-textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.proposal-textarea:hover,
.proposal-textarea:focus {
    border-color: #a3aab5;
    outline: none;
    box-shadow: none;
}

/* Discount Info */
.proposal-discount-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.25rem;
}

/* Info Alert */
.proposal-info-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #1e40af;
}

.proposal-info-alert i {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 0.1rem;
}

/* Footer - Padrão Wizard Footer */
.proposal-modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

/* Botões - Padrão Wizard */
.proposal-btn {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    font-family: 'Manrope', 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.16s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Botão Primário - Padrão Wizard (Preto) */
.proposal-btn--primary {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.proposal-btn--primary:hover:not(:disabled) {
    background: #000000;
    transform: translateY(-1px);
}

.proposal-btn--primary:active:not(:disabled) {
    transform: translateY(0);
}

.proposal-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Botão Secundário - Padrão Wizard (Cinza) */
.proposal-btn--secondary {
    background: #f7f8fa;
    color: #374151;
    border-color: #e5e7eb;
}

.proposal-btn--secondary:hover {
    border-color: #a3aab5;
    background: #f1f5f9;
}

.proposal-btn--secondary:active {
    background: #e5e7eb;
}

/* Responsividade Mobile */
@media (max-width: 576px) {
    .proposal-modal-header {
        padding: 1.25rem 1.25rem;
    }

    .proposal-modal-title {
        font-size: 1.1rem;
    }

    .proposal-modal-body {
        padding: 1.25rem;
    }

    .proposal-vehicle-card {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .proposal-vehicle-card__img {
        width: 56px;
        height: 42px;
    }

    .proposal-vehicle-card__title {
        font-size: 0.9rem;
    }

    .proposal-vehicle-card__price {
        font-size: 0.95rem;
    }

    .proposal-field-group {
        margin-bottom: 1rem;
    }

    .proposal-label {
        font-size: 0.875rem;
    }

    .proposal-input {
        min-height: 40px;
        font-size: 0.875rem;
    }

    .proposal-textarea {
        min-height: 80px;
        font-size: 0.875rem;
    }

    .proposal-modal-footer {
        padding: 1rem 1.25rem;
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .proposal-btn {
        min-height: 42px;
        font-size: 0.875rem;
    }
}
