/* Enhanced Contact Page Styles with Green & Orange Theme */

/* Import Google Fonts for Better Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Root Variables for Green & Orange Theme */
:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #FB8F67;
    --light-orange: #FFF4F0;
    --primary-green: #2E7D32;
    --secondary-green: #4CAF50;
    --light-green: #E8F5E8;
    --dark-green: #1B5E20;
    --accent-green: #66BB6A;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #F8FFFE;
    --white: #FFFFFF;
    --shadow-light: 0 4px 20px rgba(46, 125, 50, 0.1);
    --shadow-medium: 0 8px 30px rgba(46, 125, 50, 0.15);
    --shadow-heavy: 0 15px 50px rgba(46, 125, 50, 0.2);
}

/* Enhanced Page Header */
.page-header {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(46, 125, 50, 0.8) 0%,
        rgba(76, 175, 80, 0.6) 50%,
        rgba(255, 107, 53, 0.15) 100%
    );
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: heroTitleSlide 1s ease-out;
}

.page-header .breadcrumb-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    animation: breadcrumbFade 1s ease-out 0.3s both;
}

.page-header .breadcrumb-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.page-header .breadcrumb-nav a:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

/* Enhanced Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-green));
    border-radius: 2px;
}

.section-header .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Description Styling */
.content-description {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.content-description p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.content-description p:last-child {
    margin-bottom: 0;
}

/* Form Note Styling */
.form-note {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Hero Subtitle in Header */
.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin: 1rem 0 2rem 0;
    line-height: 1.5;
}

/* Enhanced Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(46, 125, 50, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.015) 0%, transparent 50%);
    background-size: 600px 600px, 400px 400px;
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: 0;
}

.contact > .container {
    position: relative;
    z-index: 1;
}

/* Contact Info Cards */
.contact-info-container {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(46, 125, 50, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.contact-info-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-orange));
    z-index: 1;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: var(--light-green);
    transition: all 0.3s ease;
    position: relative;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
    background: linear-gradient(135deg, var(--light-green), var(--light-orange));
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-light);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info:hover .contact-icon {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    transform: scale(1.1);
}

.contact-text {
    flex-grow: 1;
}

.contact-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.contact-text p,
.contact-text div {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.contact-text a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary-green);
}

/* Social Links Styling */
.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-social a:hover {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

/* Enhanced Contact Form */
.contact-form-container {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 107, 53, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-green));
    z-index: 1;
}

.form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 2rem;
}

.control-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(46, 125, 50, 0.2);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--bg-light);
    transition: all 0.3s ease;
    outline: none;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Enhanced Submit Button */
.custom-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.custom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.custom-btn:hover {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.custom-btn:hover::before {
    left: 100%;
}

.custom-btn:active {
    transform: translateY(-1px);
}

/* Alert Styling */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
    animation: alertSlide 0.5s ease-out;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    border-left: 4px solid #f44336;
}

.alert-success {
    background: linear-gradient(135deg, var(--light-green), #c8e6c9);
    color: var(--dark-green);
    border-left: 4px solid var(--primary-green);
}

/* Scroll Animations */
@keyframes heroTitleSlide {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes backgroundFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(2deg); 
    }
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* Animation Classes */
.animate-fade-up {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-fade-left {
    animation: fadeInLeft 0.8s ease-out both;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease-out both;
}

.animate-bounce {
    animation: bounceIn 1s ease-out both;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }
.animate-delay-4 { animation-delay: 0.8s; }

/* Loading States */
.loading-animate {
    opacity: 0;
    transform: translateY(50px);
}

/* Form Validation Styling */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.form-control.is-valid {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.help-block.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .page-header h2 {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .contact-info-container,
    .contact-form-container {
        padding: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .page-header {
        min-height: 50vh;
    }
    
    .page-header h2 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .contact {
        padding: 4rem 0;
    }
    
    .contact-info-container,
    .contact-form-container {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .page-header h2 {
        font-size: 2.5rem;
    }
    
    .page-header .breadcrumb-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-info-container,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .form-title {
        font-size: 1.6rem;
    }
    
    .custom-btn {
        width: 100%;
        padding: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .page-header h2 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .contact {
        padding: 3rem 0;
    }
    
    .contact-info-container,
    .contact-form-container {
        padding: 1rem;
    }
}

/* Enhanced Motourismo Logo */
.motourismo-logo {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    max-width: 140px;
    max-height: 40px;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
}

.motourismo-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Performance Optimizations */
.contact-info,
.contact-form-container,
.contact-info-container {
    will-change: transform;
}

/* Accessibility Improvements */
.contact-info:focus-within {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.custom-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.3);
}

/* Print Styles */
@media print {
    .page-header,
    .contact::before {
        background: none !important;
    }
    
    .contact-info-container,
    .contact-form-container {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}