/* Estilos modernos para upload de arquivo */
#uploadReceitaGroup2 .file-upload-wrapper {
    position: relative;
    width: 100%;
    margin-top: 0;
}

#uploadReceitaGroup2 .file-upload-message {
    font-size: 11px;
    color: #f97316;
    margin-top: 8px;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.4;
}

#uploadReceitaGroup2 .file-upload-input,
#uploadReceitaGroup2 input[type="file"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    z-index: -1 !important;
    left: -9999px !important;
    top: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

#uploadReceitaGroup2 .file-upload-label,
#uploadReceitaGroup2 label[for="arquivoReceita"] {
    display: block !important;
    width: 100% !important;
    min-height: 140px !important;
    padding: 32px 24px !important;
    border: 2px dashed #d1d5db !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-weight: normal !important;
    line-height: normal !important;
}

#uploadReceitaGroup2 .file-upload-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#uploadReceitaGroup2 .file-upload-label:hover {
    border-color: #3b82f6 !important;
    background: #f8fafc !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12) !important;
}

#uploadReceitaGroup2 .file-upload-label:hover::before {
    opacity: 1;
}

#uploadReceitaGroup2 .file-upload-label:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08) !important;
}

#uploadReceitaGroup2 .file-upload-label.drag-over {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
    border-style: solid !important;
    transform: scale(1.02);
}

#uploadReceitaGroup2 .file-upload-label.has-file {
    display: none !important;
}

#uploadReceitaGroup2 .file-upload-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

#uploadReceitaGroup2 .file-upload-icon {
    font-size: 40px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

#uploadReceitaGroup2 .file-upload-label:hover .file-upload-icon {
    color: #3b82f6;
    transform: translateY(-4px);
}

#uploadReceitaGroup2 .file-upload-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#uploadReceitaGroup2 .file-upload-button-text {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

#uploadReceitaGroup2 .file-upload-label:hover .file-upload-button-text {
    color: #3b82f6;
}

#uploadReceitaGroup2 .file-upload-hint {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

#uploadReceitaGroup2 .file-upload-preview {
    display: none;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-top: 12px;
}

#uploadReceitaGroup2 .file-upload-preview.show {
    display: block !important;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#uploadReceitaGroup2 .file-preview-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

#uploadReceitaGroup2 .file-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f3f4f6;
    flex-shrink: 0;
}

#uploadReceitaGroup2 .file-icon-wrapper i {
    font-size: 24px;
    color: #3b82f6;
}

#uploadReceitaGroup2 .file-icon-wrapper i.fa-file-pdf {
    color: #dc2626;
}

#uploadReceitaGroup2 .file-icon-wrapper i.fa-file-image {
    color: #10b981;
}

#uploadReceitaGroup2 .file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

#uploadReceitaGroup2 .file-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    word-break: break-all;
    line-height: 1.4;
}

#uploadReceitaGroup2 .file-size {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

#uploadReceitaGroup2 .file-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

#uploadReceitaGroup2 .file-remove-btn:hover {
    background: #fecaca;
    color: #b91c1c;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

#uploadReceitaGroup2 .file-remove-btn:active {
    transform: scale(0.95);
}

#uploadReceitaGroup2 .file-remove-btn i {
    font-size: 14px;
}

/* Responsivo */
@media (max-width: 768px) {
    #uploadReceitaGroup2 .file-upload-label {
        min-height: 120px !important;
        padding: 24px 20px !important;
    }
    
    #uploadReceitaGroup2 .file-upload-icon {
        font-size: 36px;
    }
    
    #uploadReceitaGroup2 .file-upload-button-text {
        font-size: 14px;
    }
    
    #uploadReceitaGroup2 .file-upload-hint {
        font-size: 12px;
    }
    
    #uploadReceitaGroup2 .file-preview-content {
        padding: 14px 16px;
        gap: 12px;
    }
    
    #uploadReceitaGroup2 .file-icon-wrapper {
        width: 44px;
        height: 44px;
    }
    
    #uploadReceitaGroup2 .file-icon-wrapper i {
        font-size: 20px;
    }
    
    #uploadReceitaGroup2 .file-name {
        font-size: 13px;
    }
    
    #uploadReceitaGroup2 .file-size {
        font-size: 11px;
    }
    
    #uploadReceitaGroup2 .file-remove-btn {
        width: 32px;
        height: 32px;
    }
}

/* Botão de enviar - Estilos melhorados */
.quote-submit-btn {
    background: linear-gradient(135deg, #1d4076 0%, #1e3a8a 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 24px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(29, 64, 118, 0.25) !important;
    width: 100% !important;
    margin-top: 8px !important;
}

.quote-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(29, 64, 118, 0.35) !important;
    background: linear-gradient(135deg, #1a3768 0%, #1b3479 100%) !important;
}

.quote-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(29, 64, 118, 0.25) !important;
}

.quote-submit-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.quote-submit-btn i {
    font-size: 0.95rem !important;
}

/* Mensagem de sucesso - Layout simétrico e clean */
.success-message-container {
    text-align: center;
    padding: 48px 32px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    max-width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 50%;
    animation: iconPulse 0.8s ease-out;
}

@keyframes iconPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon i {
    font-size: 40px;
    color: #10b981;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d4076;
    margin: 0 auto 16px auto;
    line-height: 1.3;
    letter-spacing: -0.01em;
    max-width: 100%;
}

.success-text {
    font-size: 15px;
    color: #6b7280;
    margin: 0 auto 32px auto;
    line-height: 1.6;
    max-width: 100%;
}

.new-message-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d4076;
    background: #ffffff;
    border: 2px solid #1d4076;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-message-btn:hover {
    background: #1d4076;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 64, 118, 0.25);
}

.new-message-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(29, 64, 118, 0.2);
}

.new-message-btn i {
    font-size: 0.9rem;
}

/* Responsivo para mensagem de sucesso e botão */
@media (max-width: 768px) {
    .success-message-container {
        padding: 40px 24px;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .success-icon i {
        font-size: 36px;
    }
    
    .success-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .success-text {
        font-size: 14px;
        margin-bottom: 28px;
    }
    
    .new-message-btn {
        padding: 11px 24px;
        font-size: 0.8rem;
        width: 100%;
    }
    
    .quote-submit-btn {
        padding: 13px 20px !important;
        font-size: 0.85rem !important;
    }
}

