/* Grid de consultas */
.consultas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Estilos dos cards de consulta */
.consulta-card {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.consulta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.consulta-card:hover::before {
    left: 100%;
}

.consulta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
}

.consulta-card.animate-in {
    animation: slideInUp 0.8s ease-out forwards;
}

.consulta-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.consulta-card:hover .consulta-icon {
    transform: scale(1.1);
}

.consulta-card h3 {
    font-family: 'Cinzel Decorative', serif;
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.consulta-card p {
    color: #f0f0f0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.consulta-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.choose-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.choose-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.consulta-card:hover .choose-btn {
    background: #ffd700;
    color: #1a1a2e;
    transform: translateY(-2px);
}

.choose-btn.loading {
    background: #666;
    cursor: not-allowed;
}

.choose-btn.loading i {
    animation: spin 1s linear infinite;
}

/* Estados de erro e sucesso */
.error-state {
    border-color: #ff6b6b;
    animation: shake 0.5s ease-in-out;
}

.success-state {
    border-color: #51cf66;
    animation: pulse 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animações melhoradas */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-title.animate-in {
    animation: fadeInDown 0.8s ease-out forwards;
}

/* Grid de depoimentos */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.testimonial-card {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-header h4 {
    color: #ffd700;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.2rem;
}

.rating {
    color: #ffd700;
    font-size: 1.1rem;
}

.testimonial-text {
    color: #f0f0f0;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-result {
    color: #c0c0c0;
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* Seção CTA */
.cta-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    padding: 4rem 0;
    text-align: center;
    margin: 4rem 0;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.cta-section h2 {
    font-family: 'Cinzel Decorative', serif;
    color: #ffd700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #c0c0c0;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Seção de consultas */
.consultas {
    padding: 4rem 0;
    background: rgba(26, 26, 46, 0.5);
}

.section-title {
    font-family: 'Cinzel Decorative', serif;
    color: #ffd700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Seção de depoimentos */
.testimonials {
    padding: 4rem 0;
    background: rgba(22, 33, 62, 0.5);
}

/* Responsividade dos componentes */
@media (max-width: 768px) {
    .consultas-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* MODAL DE DETALHES DOS DEPOIMENTOS */
.testimonial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.testimonial-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.testimonial-modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.close-modal:hover {
    transform: scale(1.2);
    color: #ffffff;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-header h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-rating {
    font-size: 1.2rem;
    animation: sparkle 1s ease-in-out infinite;
}

.modal-body {
    color: #ffffff;
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.modal-author {
    color: #ffd700;
    font-weight: bold;
    text-align: right;
    margin-bottom: 1rem;
}

.modal-result {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.modal-cta {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-cta p {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 1rem;
}

.modal-button {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.modal-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

/* RESPONSIVIDADE DO MODAL */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        padding: 1rem;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .consulta-card,
    .choose-btn,
    .modal-content,
    .close-modal {
        transition: none;
        animation: none;
    }
}

/* Estados de foco para navegação por teclado */
.consulta-card:focus,
.choose-btn:focus,
.close-modal:focus,
.modal-button:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Melhorias de contraste */
@media (prefers-contrast: high) {
    .consulta-card {
        border: 2px solid #ffd700;
    }
    
    .choose-btn {
        border: 2px solid #1a1a2e;
    }
    
    .modal-content {
        border: 3px solid #ffd700;
    }
}
