/* ==========================================
   SHARED STYLES - Index + Produto
   ========================================== */

/* Global Styles */
:root {
    --primary-color: #461BFF;
    --primary-hover: #3700b3;
    --text-color: #333;
    --text-secondary: #666;
    --background-light: #f9f9fc;
    --white: #ffffff;
    --border-radius: 10px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 54px;
    width: auto;
}

.header-contact {
    flex: 0 0 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.header-contact .label {
    display: block;
    font-weight: bold;
    color: #461BFF;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.header-contact .phones {
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
    display: flex;
    gap: 20px;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.phone-icon {
    width: 22px;
    height: 22px;
    fill: #461BFF;
}

@media (max-width: 768px) {
    .header-contact .phones {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

/* Hero Section */
.hero-section {
    background-image: url('images/hero.avif'), linear-gradient(to right, #0A1452, #1428A4);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat, no-repeat;
    width: 100%;
    padding: 36px 20px 75px 20px;
    text-align: left;
    color: #ffffff;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero-section {
        background-image: linear-gradient(to right, #0A1452, #1428A4);
    }

    .hero-content {
        text-align: center;
        align-items: center;
        gap: 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content strong {
        font-size: 2rem !important;
    }

    .hero-content p {
        font-size: 1rem !important;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-content strong {
    display: block;
    font-size: 2.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 400;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.hero-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.hero-btn svg,
.hero-btn img {
    width: 24px;
    height: 24px;
}

.btn-whatsapp {
    background: linear-gradient(to top, #128C7E, #25D366);
}

.btn-quote {
    background: linear-gradient(to top, #3a5a9c, #5b7fc7);
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Modal Overlay Base */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
}

#wizardModal .modal-content {
    max-height: 800px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    #wizardModal .modal-content {
        max-height: 85dvh;
        border-radius: 10px;
        margin: 0;
        padding: 20px;
        overflow-y: scroll;
    }

    #wizardModal.modal-overlay {
        padding: 0;
        align-items: center;
    }

    #wizard_data_nascimento {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #461BFF;
    margin: 0;
    font-size: 1.4rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #461BFF;
    box-shadow: 0 0 0 3px rgba(70, 27, 255, 0.1);
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-submit {
    background: linear-gradient(135deg, #461BFF 0%, #6B4EFF 100%);
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(70, 27, 255, 0.3);
}

.modal-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    padding: 14px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.modal-btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-2px);
}

.modal-footer-text {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Result Modals (Success/Error) */
.result-modal .modal-content {
    padding: 0;
    overflow: hidden;
}

.result-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    color: white;
}

.result-modal-header.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.result-modal-header.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.result-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.result-modal-header .modal-close {
    color: white;
    opacity: 0.9;
}

.result-modal-header .modal-close:hover {
    opacity: 1;
    color: white;
}

.result-modal-body {
    padding: 30px 25px;
    text-align: center;
}

.result-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.result-modal-icon.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.result-modal-icon.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.result-modal-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.result-modal-body p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.result-modal-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-modal-action.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.result-modal-action.whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.result-modal-action img {
    width: 22px;
    height: 22px;
}

/* Footer Styles */
footer {
    background: #3C6197;
    padding: 40px 0 0;
    color: white;
}

.footer-content {
    max-width: 100%;
}

.footer-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: white;
}

.footer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.footer-card {
    background: white;
    color: #333;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.footer-card:hover {
    transform: translateY(-5px);
}

.footer-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    object-fit: contain;
}

.footer-card h4 {
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.3;
    min-height: 40px;
    color: #333;
}

.footer-card-btn {
    background: #4EAB94;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.footer-card-btn:hover {
    background: #3d8975;
}

.footer-info {
    background: #1428A4;
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-info-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.company-logo {
    width: 180px;
    margin-bottom: 10px;
}

.company-info h3 {
    font-size: 24px;
    margin: 0;
    color: white;
}

.company-info p {
    opacity: 0.9;
}

.legal-text-full {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.9;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
    width: 100%;
}

.contact-details h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: white;
}

.phone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.phone-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-details a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-details a:hover {
    opacity: 0.8;
}

.contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    opacity: 0.8;
    background: #1428A4;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 1;
}

.footer-link svg {
    width: 20px;
    height: 20px;
    fill: #7AC1FF;
    flex-shrink: 0;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 72px;
    height: 72px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 36px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-info-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-cards {
        grid-template-columns: 1fr;
    }

    .phone-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }
}