/* Modal de Solicitação de Orçamento */

.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}
.news-image img {
	height: 16rem!important;
	object-fit: cover;
	width: 100%;
}
.wp-post-image {
	height: 15rem !important;
	object-fit: cover;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    transition: backdrop-filter 0.3s ease;
}

.modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #005ba6;
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

/* Formulário */
.quote-form {
    width: 100%;
}

.form-section {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label i {
    margin-right: 8px;
    color: #005ba6;
    width: 16px;
}

.section-label {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #1f2937;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #005ba6;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Seleção de Tipo de Negócio */
.business-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.business-type-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
    position: relative;
}

.business-type-card:hover {
    border-color: #005ba6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.business-type-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.business-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.business-type-content i {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.business-type-content span {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.business-type-radio:checked + .business-type-content {
    background: linear-gradient(135deg, #005ba6 0%, #764ba2 100%);
    color: white;
}

.business-type-radio:checked + .business-type-content i {
    color: white;
}

.business-type-radio:checked + .business-type-content span {
    color: white;
}

.business-type-card:has(.business-type-radio:checked) {
    border-color: #005ba6;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

/* Botão de Submissão */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 16px;
}

.btn-submit {
    background: #005ba6;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit-icon {
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-submit-icon {
    transform: translateX(2px);
}

/* Estados de Loading */
.btn-submit.loading {
    pointer-events: none;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.btn-submit.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Aviso de Privacidade */
.form-privacy {
    text-align: center;
    margin-top: 16px;
}

.privacy-text {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.privacy-text i {
    color: #10b981;
}

/* Mensagem de Sucesso */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    animation: fadeIn 0.5s ease-out;
}

.success-content {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 24px;
    animation: bounceIn 0.6s ease-out;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.success-text {
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-success-close {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-container {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(95vh - 100px);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .business-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .business-type-content {
        padding: 16px 8px;
    }
    
    .business-type-content i {
        font-size: 1.25rem;
    }
    
    .business-type-content span {
        font-size: 0.8rem;
    }
    
    .btn-submit {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .business-type-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
}

/* Melhorias específicas para mobile */
@media (max-width: 360px) {
    .modal-container {
        padding: 5px;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Estados hover melhorados */
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #9ca3af;
}
