/* ===== CSS Variables ===== */
:root {
    --red: #ef4850;
    --red-dark: #d43d45;
    --red-light: #fef0f0;
    --red-gradient: linear-gradient(135deg, #ef4850 0%, #d43d45 100%);
    --blue: #2c99d4;
    --blue-dark: #2280b5;
    --blue-light: #eff6ff;
    --blue-gradient: linear-gradient(135deg, #2c99d4 0%, #2280b5 100%);
    --black: #1a1a1a;
    --dark-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --gray-50: #f8fafb;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #404040;
    --white: #fff;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --green-gradient: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    --purple: #8b5cf6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
}

/* ===== HERO ===== */
.contact-hero {
    background: linear-gradient(135deg, var(--red-light) 0%, var(--blue-light) 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}
.hero-shape-1 {
    width: 400px; height: 400px;
    background: var(--red);
    top: -100px; right: -5%;
    animation: floatShape 8s ease-in-out infinite;
}
.hero-shape-2 {
    width: 300px; height: 300px;
    background: var(--blue);
    bottom: -50px; left: -5%;
    animation: floatShape 6s ease-in-out infinite reverse;
}
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -15px) scale(1.05); }
}
.contact-hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--white);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.contact-hero-title { font-size: 2.25rem; font-weight: 800; color: var(--black); margin-bottom: 1rem; }
@media (min-width: 768px) { .contact-hero-title { font-size: 3rem; } }
.text-gradient {
    background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-hero-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}
@media (min-width: 768px) { .contact-hero-subtitle { font-size: 1.125rem; } }

/* ===== CONTACT CONTENT ===== */
.contact-content-section { padding: 3rem 0 5rem; background: var(--gray-50); }
.contact-layout {
    display: grid;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 420px 1fr;
        gap: 3rem;
    }
}

/* ===== INFO CARDS ===== */
.contact-info-cards {
    display: grid;
    gap: 1rem;
}
@media (min-width: 480px) {
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}
.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.info-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.phone-icon { background: var(--red-light); color: var(--red); }
.email-icon { background: var(--blue-light); color: var(--blue); }
.whatsapp-icon { background: #ecfdf5; color: #25D366; }
.location-icon { background: #f5f3ff; color: var(--purple); }
.info-card-content { flex: 1; }
.info-card-content h3 { font-size: 0.9375rem; font-weight: 700; color: var(--black); margin-bottom: 0.25rem; }
.info-card-content p { font-size: 0.75rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 0.5rem; }
.info-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    transition: gap 0.2s;
}
.info-card-link:hover { gap: 0.625rem; }

/* ===== BUSINESS HOURS ===== */
.business-hours-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1rem;
}
.hours-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}
.hours-title svg { color: var(--red); }
.hours-list { display: flex; flex-direction: column; gap: 0.625rem; }
.hours-row { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--gray-600); }
.hours-row span:first-child { font-weight: 500; }
.hours-time { font-weight: 600; color: var(--black); }
.hours-closed .hours-time { color: #dc2626; }

/* ===== SOCIALS ===== */
.contact-socials {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1rem;
}
.contact-socials h4 { font-size: 0.9375rem; font-weight: 700; color: var(--black); margin-bottom: 0.75rem; }
.social-links-row { display: flex; gap: 0.5rem; }
.social-icon-link {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.3s ease;
}
.social-icon-link:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(239,72,80,0.3);
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .contact-form-wrapper { padding: 2.5rem; } }
.form-header { margin-bottom: 2rem; }
.form-header h2 { font-size: 1.5rem; font-weight: 700; color: var(--black); margin-bottom: 0.375rem; }
.form-header p { font-size: 0.875rem; color: var(--gray-500); }

.contact-form { display: flex; flex-direction: column; gap: 1.125rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.8125rem; font-weight: 600; color: var(--gray-600); }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    z-index: 1;
    pointer-events: none;
    transition: color 0.2s;
}
.input-icon-top { top: 1rem; transform: none; }
.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--black);
    outline: none;
    background: var(--white);
    transition: all 0.3s ease;
}
.form-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(239,72,80,0.06);
}
.form-input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon { color: var(--red); }
.form-input::placeholder { color: var(--gray-400); }

.form-textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 0.875rem;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-error { font-size: 0.75rem; color: #dc2626; min-height: 1rem; }

/* Radio Group */
.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.radio-option input[type="radio"] { display: none; }
.radio-mark {
    width: 20px; height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.radio-option input:checked ~ .radio-mark {
    border-color: var(--red);
    background: var(--red);
    box-shadow: inset 0 0 0 4px var(--white);
}
.radio-label { font-size: 0.8125rem; color: var(--gray-600); }

/* Checkbox */
.checkbox-option { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8125rem; color: var(--gray-500); cursor: pointer; }
.checkbox-option input[type="checkbox"] { display: none; }
.checkbox-mark {
    width: 20px; height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s;
}
.checkbox-option input:checked ~ .checkbox-mark {
    background: var(--red);
    border-color: var(--red);
}
.checkbox-option input:checked ~ .checkbox-mark::after {
    content: '✓';
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
}

/* Form Success */
.form-success { text-align: center; padding: 3rem 1rem; }
.success-icon-wrapper {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--green);
}
.form-success h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.form-success p { color: var(--gray-500); margin-bottom: 0.5rem; }
.success-reference { font-size: 0.9375rem; margin-bottom: 1.5rem; }
.success-reference strong { color: var(--red); }

/* ===== IMPROVED MAP SECTION ===== */
.contact-map-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.map-header {
    text-align: center;
    margin-bottom: 2rem;
}

.map-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.map-header p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .map-header h2 {
        font-size: 2.25rem;
    }
}

.map-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: var(--gray-200);
}

.google-map {
    width: 100%;
    height: 100%;
    filter: grayscale(0.1) contrast(1.05);
    transition: filter 0.3s ease;
}

.map-container:hover .google-map {
    filter: grayscale(0) contrast(1);
}

.map-overlay-content {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    pointer-events: none;
}

.map-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    max-width: 320px;
    transition: all 0.3s ease;
}

.map-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.map-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--red-light);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.map-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.map-info-card p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.map-directions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-directions, .btn-copy-address {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    border: none;
    background: var(--white);
    color: var(--gray-600);
    box-shadow: var(--shadow-sm);
}

.btn-directions:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-copy-address:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
    
    .map-overlay-content {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    .map-info-card {
        max-width: 100%;
        padding: 0.875rem 1rem;
    }
}

/* ===== FAQ ACCORDION SECTION ===== */
.contact-faq-section {
    padding: 4rem 0 5rem;
    background: var(--white);
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--red-light);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 1rem;
}

.faq-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.faq-header p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .faq-header h2 {
        font-size: 2.25rem;
    }
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--red-light);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
    text-align: left;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question.active {
    background: var(--red-light);
    color: var(--red);
}

.faq-question-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--red);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--gray-400);
}

.faq-question.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--red);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gray-50);
    border-top: 1px solid transparent;
}

.faq-answer.active {
    max-height: 600px;
    border-top-color: var(--gray-200);
}

.faq-answer-content {
    padding: 1.25rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.6;
}

.faq-answer-content p {
    margin-bottom: 0.75rem;
}

.faq-answer-content ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
    list-style: none;
}

.faq-answer-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.faq-highlight {
    background: linear-gradient(135deg, var(--red-light), #fff5f0);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-top: 0.75rem;
    border-left: 3px solid var(--red);
}

.faq-note {
    background: var(--blue-light);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-top: 0.75rem;
    border-left: 3px solid var(--blue);
    font-size: 0.8125rem;
}

/* Animation for FAQ items */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer.active .faq-answer-content {
    animation: slideDown 0.3s ease forwards;
}

/* Responsive FAQ */
@media (max-width: 640px) {
    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .faq-question-content {
        gap: 0.5rem;
    }
    
    .faq-answer-content {
        padding: 1rem;
        font-size: 0.8125rem;
    }
    
    .faq-icon {
        width: 18px;
        height: 18px;
    }
}

/* Shake animation for form errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}
/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.5rem 1.25rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600;
    cursor: pointer; border: 2px solid transparent; transition: all 0.3s ease;
    text-decoration: none; font-family: inherit; white-space: nowrap;
}
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.75rem; }
.btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; height: 50px; }
.btn-full { width: 100%; }
.btn-primary { background: var(--dark-gradient); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-outline { background: var(--white); color: var(--black); border-color: var(--gray-200); }
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }

/* Spinner */
.spinner { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOAST ===== */
.contact-toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--dark-gradient); color: var(--white);
    padding: 0.75rem 1.5rem; border-radius: 9999px;
    font-size: 0.875rem; display: flex; align-items: center; gap: 0.625rem;
    z-index: 9999; opacity: 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-xl); white-space: nowrap;
}
.contact-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.contact-toast-success { border: 1px solid var(--green); }
.contact-toast-error { border: 1px solid #dc2626; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-info-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .contact-hero-title { font-size: 1.75rem; }
    .contact-info-cards { grid-template-columns: 1fr; }
    .form-header h2 { font-size: 1.25rem; }
    .map-card { margin: 0 1rem; padding: 1.25rem; }
}