/* ===== ESTILOS ESPECÍFICOS PARA "CONTATO" ===== */

/* Hero Section específica */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Destaques de contato */
.contact-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-weight: 500;
}

.highlight-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Ilustração de contato */
.contact-illustration {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--warning-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Cards de contato */
.contact-info-card,
.contact-form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-info-card:hover,
.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-info-card h3,
.contact-form-card h3 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info-card h3::after,
.contact-form-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--warning-color);
    border-radius: 2px;
}

/* Itens de contato */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 193, 7, 0.05);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--warning-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.contact-details h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-details small {
    font-size: 0.85rem;
}

/* Links sociais */
.social-links {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--warning-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

/* Formulário */
.contact-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    background: white;
}

.contact-form .form-control::placeholder {
    color: #6c757d;
}

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

/* Checkbox personalizado */
.form-check-input:checked {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.form-check-input:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-check-label {
    color: var(--dark-color);
    font-size: 0.9rem;
}

.form-check-label a {
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Botão de envio */
.contact-form .btn {
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.accordion-item {
    border: none;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-button {
    background: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    border-radius: 15px;
}

.accordion-button:not(.collapsed) {
    background: var(--warning-color);
    color: var(--dark-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    background: white;
    padding: 1.5rem;
    color: var(--dark-color);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2,
.cta-section p {
    color: white;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    position: relative;
    z-index: 2;
}

/* Responsividade */
@media (max-width: 768px) {
    .contact-highlights {
        margin-top: 1.5rem;
    }
    
    .highlight-item {
        font-size: 0.9rem;
    }
    
    .contact-illustration {
        height: 300px;
        margin-top: 2rem;
    }
    
    .floating-element {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .contact-illustration {
        height: 250px;
    }
    
    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .contact-form .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .floating-element,
    .contact-item,
    .contact-info-card,
    .contact-form-card {
        animation: none;
        transition: none;
    }
}

/* Modo escuro (se implementado) */
@media (prefers-color-scheme: dark) {
    .contact-info-card,
    .contact-form-card {
        background: #2d3748;
        color: white;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        background: #4a5568;
        border-color: #4a5568;
        color: white;
    }
    
    .accordion-button {
        background: #2d3748;
        color: white;
    }
    
    .accordion-body {
        background: #2d3748;
        color: white;
    }
} 

/* ===== MOBILE OPTIMIZATIONS FOR CONTATO PAGE ===== */

/* Hero Section Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 2rem 0;
        min-height: 85vh;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    /* Contact highlights mobile */
    .contact-highlights {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .highlight-item {
        padding: 0.75rem;
        gap: 0.75rem;
        font-size: 0.9rem;
    }
    
    .highlight-item i {
        font-size: 1.1rem;
        min-width: 20px;
    }
    
    /* Contact illustration mobile */
    .contact-illustration {
        height: 300px;
        margin-top: 2rem;
    }
    
    .floating-element {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Contact Section Mobile */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-info-card h3,
    .contact-form-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-form-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Contact items mobile */
    .contact-item {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }
    
    .contact-details h6 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .contact-details small {
        font-size: 0.8rem;
    }
    
    /* Social links mobile */
    .social-links {
        padding-top: 1rem;
    }
    
    .social-links h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Form Mobile */
@media (max-width: 768px) {
    .contact-form .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .contact-form textarea {
        min-height: 100px;
    }
    
    .form-check-label {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .contact-form .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
}

/* FAQ Section Mobile */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .faq-section .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .accordion-item {
        margin-bottom: 0.75rem;
    }
    
    .accordion-button {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
}

/* CTA Section Mobile */
@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 576px) {
    .hero-section {
        padding: 5rem 0 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.9rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .highlight-item {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .highlight-item i {
        font-size: 1rem;
        min-width: 18px;
    }
    
    .contact-illustration {
        height: 250px;
    }
    
    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 1.25rem;
    }
    
    .contact-info-card h3,
    .contact-form-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-form-card p {
        font-size: 0.85rem;
    }
    
    .contact-item {
        padding: 0.5rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
    
    .contact-details h6 {
        font-size: 0.9rem;
    }
    
    .contact-details p {
        font-size: 0.85rem;
    }
    
    .contact-details small {
        font-size: 0.75rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .contact-form .form-label {
        font-size: 0.85rem;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .contact-form textarea {
        min-height: 80px;
    }
    
    .form-check-label {
        font-size: 0.8rem;
    }
    
    .contact-form .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .faq-section h2 {
        font-size: 1.8rem;
    }
    
    .faq-section .lead {
        font-size: 0.9rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    .cta-section p {
        font-size: 0.9rem;
    }
    
    .cta-buttons .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Mobile Accessibility Improvements */
@media (max-width: 768px) {
    /* Increase touch targets */
    .highlight-item,
    .contact-item,
    .social-link,
    .contact-form .btn,
    .accordion-button,
    .cta-buttons .btn {
        min-height: 44px;
    }
    
    /* Improve contrast */
    .text-white-50 {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .text-muted {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    /* Better focus indicators */
    .highlight-item:focus,
    .contact-item:focus,
    .social-link:focus,
    .contact-form .btn:focus,
    .accordion-button:focus,
    .cta-buttons .btn:focus {
        outline: 2px solid var(--warning-color);
        outline-offset: 2px;
    }
    
    /* Improve readability */
    .contact-details p,
    .contact-form .form-control,
    .contact-form .form-select,
    .accordion-body {
        line-height: 1.6;
    }
    
    /* Better spacing for mobile */
    .contact-item {
        margin-bottom: 1.25rem;
    }
    
    .social-links .d-flex {
        gap: 0.75rem !important;
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile */
    .floating-element {
        animation: none;
    }
    
    .contact-item,
    .contact-info-card,
    .contact-form-card,
    .social-link {
        transition: all 0.2s ease;
    }
    
    /* Reduce hover effects on mobile */
    .contact-item:hover,
    .contact-info-card:hover,
    .contact-form-card:hover,
    .social-link:hover {
        transform: none;
    }
    
    /* Optimize scroll */
    html {
        scroll-behavior: auto;
    }
    
    /* Reduce shadows for better performance */
    .contact-info-card,
    .contact-form-card,
    .accordion-item {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

/* Landscape Mobile Support */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: 4rem 0 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .contact-highlights {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .highlight-item {
        flex: 1;
        padding: 0.5rem;
    }
    
    .contact-illustration {
        height: 200px;
        margin-top: 1rem;
    }
    
    .floating-element {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 2rem;
    }
    
    .contact-item {
        margin-bottom: 1.75rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .accordion-button {
        padding: 1.75rem;
    }
    
    .accordion-body {
        padding: 1.75rem;
    }
}

/* Mobile Touch Interactions */
@media (max-width: 768px) {
    /* Touch feedback for interactive elements */
    .highlight-item,
    .contact-item,
    .social-link,
    .contact-form .btn,
    .accordion-button,
    .cta-buttons .btn {
        -webkit-tap-highlight-color: transparent;
    }
    
    .highlight-item:active,
    .contact-item:active,
    .social-link:active,
    .contact-form .btn:active,
    .accordion-button:active,
    .cta-buttons .btn:active {
        transform: scale(0.98);
    }
    
    /* Improve form touch experience */
    .contact-form .form-control,
    .contact-form .form-select {
        touch-action: manipulation;
    }
    
    /* Better spacing for touch targets */
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .social-links .d-flex {
        gap: 1rem !important;
    }
    
    .accordion-item {
        margin-bottom: 1rem;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    /* Ensure proper spacing for fixed navbar */
    main {
        padding-top: 0;
    }
    
    /* Improve breadcrumb visibility */
    .breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    /* Better section spacing */
    section {
        padding: 2.5rem 0;
    }
    
    /* Improve container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Mobile Content Optimization */
@media (max-width: 768px) {
    /* Optimize text hierarchy */
    .section-title {
        font-weight: 600;
        line-height: 1.3;
    }
    
    .section-subtitle {
        line-height: 1.5;
    }
    
    /* Improve list readability */
    ul {
        line-height: 1.6;
    }
    
    /* Better paragraph spacing */
    p {
        margin-bottom: 1rem;
    }
    
    /* Optimize form layout */
    .contact-form .row {
        margin: 0;
    }
    
    .contact-form .col-md-6,
    .contact-form .col-12 {
        padding: 0 0.5rem;
    }
}

/* Mobile Loading States */
@media (max-width: 768px) {
    /* Reduce loading animations for better performance */
    .contact-item,
    .contact-info-card,
    .contact-form-card,
    .accordion-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    /* Optimize AOS animations for mobile */
    [data-aos] {
        transition-duration: 0.4s !important;
    }
}

/* Mobile Error Handling */
@media (max-width: 768px) {
    /* Ensure content is always visible */
    .contact-details,
    .contact-form,
    .accordion-body {
        overflow: visible;
        word-wrap: break-word;
    }
    
    /* Prevent horizontal scroll */
    .container,
    .row,
    .col-lg-4,
    .col-lg-8 {
        overflow-x: hidden;
    }
    
    /* Improve form validation display */
    .invalid-feedback {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    .is-invalid {
        border-color: #dc3545 !important;
    }
    
    .is-valid {
        border-color: #198754 !important;
    }
}

/* Mobile Form Specific Optimizations */
@media (max-width: 768px) {
    /* Improve form field spacing */
    .contact-form .row.g-3 {
        --bs-gutter-y: 1rem;
    }
    
    /* Better select dropdowns */
    .contact-form .form-select {
        background-size: 12px;
        padding-right: 2rem;
    }
    
    /* Improve checkbox touch target */
    .form-check {
        padding-left: 1.75rem;
    }
    
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin-left: -1.75rem;
    }
    
    /* Better textarea */
    .contact-form textarea {
        resize: none;
        overflow-y: auto;
    }
    
    /* Improve button states */
    .contact-form .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    /* Loading state for mobile */
    .contact-form .btn.loading {
        position: relative;
        color: transparent;
    }
    
    .contact-form .btn.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
}

/* Mobile Alert Optimizations */
@media (max-width: 768px) {
    /* Improve alert display */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .alert-success {
        background-color: rgba(25, 135, 84, 0.1);
        border: 1px solid rgba(25, 135, 84, 0.2);
        color: #0f5132;
    }
    
    .alert-danger {
        background-color: rgba(220, 53, 69, 0.1);
        border: 1px solid rgba(220, 53, 69, 0.2);
        color: #721c24;
    }
    
    /* Toast notifications for mobile */
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* Accessibility for users with reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-element,
    .contact-item,
    .contact-info-card,
    .contact-form-card,
    .social-link,
    .accordion-button {
        animation: none;
        transition: none;
    }
    
    .contact-item:hover,
    .contact-info-card:hover,
    .contact-form-card:hover,
    .social-link:hover {
        transform: none;
    }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .contact-info-card,
    .contact-form-card,
    .accordion-item,
    .accordion-button,
    .accordion-body {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .contact-info-card h3,
    .contact-form-card h3,
    .accordion-button {
        color: #ecf0f1;
    }
    
    .contact-details p,
    .contact-form-card p,
    .accordion-body {
        color: #bdc3c7;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        background: #34495e;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .contact-form .form-control:focus,
    .contact-form .form-select:focus {
        background: #2c3e50;
        border-color: var(--warning-color);
    }
    
    .form-check-label {
        color: #ecf0f1;
    }
    
    .social-link {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .social-link:hover {
        background: var(--warning-color);
        color: #2c3e50;
    }
} 