/* Contact Page Specific Styles - Apenas estilos usados nesta página */

/* Contact Section - Neomorphic */
.contact {
    position: relative;
    padding: 5rem 0;
    overflow: visible;
    background-color: var(--primary-color);
}

.contact-background {
    background-image: url('../assets/images/FUNDO-LEVE-MIX.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: overlay;
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    bottom: -100px;
    background-color: var(--primary-color);
    opacity: 0.33;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 3rem;
    justify-content: center;
}

.contact-item {
    display: flex;
    gap: 24px;
    align-items: start;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item h3.contact-item-title,
.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-item a:hover {
    color: #5a1f35;
    text-decoration: underline;
}

/* =============================================
   Contact Form — Wrapper + Header
   ============================================= */
.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

/* Folhas decorativas - Form Wrapper */
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -35px;
    width: 100px;
    height: 100px;
    background-image: url('../assets/images/leaf.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    z-index: 10;
    transform: rotate(-25deg);
    filter: blur(1.5px);
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.contact-form-wrapper.animate-leaves::before {
    opacity: 0.6;
    animation: leafSlideLeft 1s ease-out 0.3s both;
}

.contact-form-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -30px;
    width: 80px;
    height: 80px;
    background-image: url('../assets/images/leaf.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    z-index: 10;
    transform: rotate(45deg);
    filter: blur(1px);
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.contact-form-wrapper.animate-leaves::after {
    opacity: 0.5;
    animation: leafSlideRight 1s ease-out 0.5s both;
}

@keyframes leafSlideLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.8) rotate(-25deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(-25deg);
    }
}

@keyframes leafSlideRight {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.8) rotate(45deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(45deg);
    }
}

.contact-form-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    margin: 0 0 1.5rem;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* =============================================
   Contact Form — Fields
   ============================================= */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.875rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(var(--text-light-rgb), 0.5);
}

.form-input:hover {
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.12);
    background: var(--white);
}

/* Select dropdown */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23792a47' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select:invalid,
.form-select option[value=""][disabled] {
    color: rgba(var(--text-light-rgb), 0.5);
}

.form-select option {
    color: var(--text-dark);
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
    line-height: 1.6;
}

/* Validation states */
.form-input-valid {
    border-color: var(--secondary-color);
}

.form-input-error {
    border-color: #d63031;
    background-color: #fff5f5;
}

.form-input-error:focus {
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.12);
}

.form-field-error {
    font-size: 0.8rem;
    color: #d63031;
    font-weight: 500;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: formErrorSlideIn 0.3s ease;
}

@keyframes formErrorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Contact Form — Submit Button
   ============================================= */
.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.3);
    align-self: flex-start;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--primary-color-rgb), 0.4);
}

.form-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(var(--primary-color-rgb), 0.3);
}

.form-submit-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.form-submit:hover .form-submit-icon {
    transform: translateX(4px);
}

/* Loading state */
.form-submit-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.form-btn-loading .form-submit-text,
.form-btn-loading .form-submit-icon {
    display: none;
}

.form-btn-loading .form-submit-loading {
    display: inline-flex;
}

.form-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: formSpin 0.8s linear infinite;
}

@keyframes formSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   Form Status Messages
   ============================================= */
.form-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: opacity 0.3s ease;
    animation: formStatusSlideIn 0.4s ease;
}

@keyframes formStatusSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-status i,
.form-status svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.form-status-success {
    background: var(--secondary-color-emphasis);
    color: var(--secondary-color);
    border: 1px solid rgba(var(--secondary-color-rgb), 0.3);
}

.form-status-error {
    background: #fff5f5;
    color: #d63031;
    border: 1px solid rgba(214, 48, 49, 0.2);
}

/* =============================================
   Map Section
   ============================================= */
.map-section {
    margin-top: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.map-title {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-description {
    color: var(--white);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-container {
    margin-top: 1.5rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

.map-container iframe {
    display: block;
    width: 100%;
    border: none;
    min-height: 450px;
}

/* =============================================
   Testimonials Section
   ============================================= */
.testimonials {
    padding: 0 0 3rem;
    position: relative;
    z-index: 1;
}

.contact .testimonials .section-title {
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.testimonials-swiper {
    width: 100%;
    padding: 2rem 0 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color-emphasis);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.testimonial-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.testimonial-author strong {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Testimonials Swiper Navigation */
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    background: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow-soft) !important;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.testimonials-swiper .swiper-button-next:after,
.testimonials-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: 700;
}

.testimonials-swiper .swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.testimonials-swiper .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 6px;
}

/* =============================================
   Responsive Styles
   ============================================= */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
        border-radius: 16px;
    }

    /* Hide leaves on small screens */
    .contact-form-wrapper::before,
    .contact-form-wrapper::after {
        display: none;
    }

    .form-submit {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 1.25rem;
    }

    .form-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .form-spinner {
        animation: none;
    }

    .form-field-error,
    .form-status {
        animation: none;
    }

    .form-submit,
    .form-submit:hover {
        transform: none;
        transition: none;
    }
}