/* CONTACT PAGE - MODERN PREMIUM DESIGN */

/* Contact Hero Section - Completely Renovated */
.contact-hero-modern {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #40916c 100%);
    overflow: hidden;
    padding: 60px 20px;
}

.hero-overlay-contact {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 211, 102, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(64, 145, 108, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(27, 67, 50, 0.8) 0%, rgba(45, 106, 79, 0.9) 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 33% 50%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 66% 33%, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 200%;
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 100% 0%, 33% 66%, 66% 33%; }
    50% { background-position: 100% 100%, 0% 0%, 33% 66%, 100% 0%, 0% 100%, 66% 33%, 33% 66%; }
}

.hero-content-contact {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 20px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0); }
}

.badge-icon {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.badge-text {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.hero-title-contact {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    letter-spacing: -1.5px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, #25D366 0%, #52ffa8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-description-contact {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-features-contact {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-item span {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
}

.hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--secondary-color);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn-hero-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-hero-primary:hover {
    color: white !important;
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.btn-hero-primary:hover svg {
    color: white !important;
    stroke: white !important;
}

.btn-hero-primary:hover .btn-text {
    color: white !important;
}

.btn-hero-primary svg,
.btn-hero-primary .btn-text {
    position: relative;
    z-index: 1;
}

.btn-hero-whatsapp {
    background: rgba(37, 211, 102, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(37, 211, 102, 0.5);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
}

.btn-hero-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .contact-hero-modern {
        min-height: 400px;
        padding: 50px 20px;
    }
    
    .hero-title-contact {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    
    .hero-description-contact {
        font-size: 1rem;
    }
    
    .hero-features-contact {
        gap: 12px;
    }
    
    .feature-item {
        padding: 8px 16px;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .btn-hero-primary,
    .btn-hero-whatsapp {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title-contact {
        font-size: 1.8rem;
    }
    
    .hero-description-contact {
        font-size: 0.95rem;
    }
    
    .badge-text {
        font-size: 0.8rem;
    }
    
    .btn-hero-primary,
    .btn-hero-whatsapp {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

.contact-section {
    padding: 80px 0;
    background: #f9fafb;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-form-wrapper {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.1);
    transition: all 0.4s ease;
}

.contact-form-wrapper:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.form-header-modern {
    text-align: center;
    margin-bottom: 40px;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2ca562 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4); }
}

.header-icon svg {
    color: white;
    stroke-width: 2;
}

.form-header-modern h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.form-header-modern p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.form-group-modern label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.form-group-modern input,
.form-group-modern textarea {
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15);
    transform: translateY(-2px);
}

.form-group-modern textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.btn-submit-modern {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2ca562 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 16px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

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

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

.btn-submit-modern:hover svg {
    transform: translateX(6px) rotate(10deg);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), #2ca562);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(37, 211, 102, 0.2);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(45, 106, 79, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2ca562 100%);
    color: white;
}

.contact-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.contact-card > p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.whatsapp-card {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
    position: relative;
    overflow: hidden;
}

.whatsapp-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: whatsappGlow 3s ease-in-out infinite;
}

@keyframes whatsappGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10%, -10%); }
}

.whatsapp-card h3,
.whatsapp-card p {
    color: white;
    position: relative;
    z-index: 1;
}

.whatsapp-card::before {
    background: white;
}

.whatsapp-icon {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-card:hover .whatsapp-icon {
    background: white;
    color: #25D366;
}

.btn-whatsapp-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #128C7E;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.btn-whatsapp-small:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    background: #f0f0f0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(37, 211, 102, 0.05);
    transform: translateX(4px);
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.detail-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.detail-value:hover {
    color: #2ca562;
    transform: translateX(2px);
}

.address-details {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #6b7280;
}

.address-details p {
    margin: 0;
}

.address-details strong {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.05rem;
}

.map-card {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}

.map-card iframe {
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-card:hover iframe {
    filter: grayscale(0%) contrast(1.2);
}

/* Full Width Map Section */
.map-section-full {
    margin-top: 60px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.1);
}

.map-section-full iframe {
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-section-full:hover iframe {
    filter: grayscale(0%) contrast(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-layout {
        grid-template-columns: 1fr 380px;
        gap: 32px;
    }
    .contact-form-wrapper {
        padding: 40px;
    }
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .whatsapp-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    .contact-form-wrapper {
        padding: 36px 24px;
        border-radius: 20px;
    }
    .form-header-modern h2 {
        font-size: 1.75rem;
    }
    .header-icon {
        width: 70px;
        height: 70px;
    }
    .header-icon svg {
        width: 28px;
        height: 28px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-sidebar {
        grid-template-columns: 1fr;
    }
    .contact-card {
        padding: 28px;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 40px 0;
    }
    .contact-form-wrapper {
        padding: 28px 20px;
        border-radius: 16px;
    }
    .form-header-modern {
        margin-bottom: 32px;
    }
    .form-header-modern h2 {
        font-size: 1.5rem;
    }
    .header-icon {
        width: 60px;
        height: 60px;
    }
    .btn-submit-modern {
        padding: 16px 32px;
        font-size: 0.95rem;
    }
    .contact-card {
        padding: 24px;
        border-radius: 16px;
    }
    .card-icon {
        width: 56px;
        height: 56px;
    }
    .contact-card h3 {
        font-size: 1.1rem;
    }
}

/* Form Validation Styles */
.form-group-modern input.error,
.form-group-modern textarea.error {
    border-color: #ef4444;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.form-group-modern input.success,
.form-group-modern textarea.success {
    border-color: var(--secondary-color);
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
    font-weight: 600;
}

.error-message.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.btn-submit-modern.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit-modern.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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