/* Contact Page Responsive Fixes */

/* Fix for navbar on mobile */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 14px 20px;
        height: auto;
        min-height: 25px;
    }

    .user-area {
        margin-left: auto;
    }

    .login-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .nav-toggle {
        margin-left: 15px;
    }
}

/* Contact Section Responsive Fixes */
.contact-section,
.feedback-section,
.team-section {
    padding-top: 100px;
    padding-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Form Fixes */
.contact-form,
.bug-form {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    box-sizing: border-box;
}

.contact-form input,
.contact-form textarea,
.bug-form textarea,
.bug-form select {
    width: 100%;
    box-sizing: border-box;
    margin-right: 0;
    margin-bottom: 15px;
}

/* Fix textarea height */
.contact-form textarea,
.bug-form textarea {
    min-height: 120px;
    height: auto;
}

/* Fix form input padding */
.contact-form input,
.bug-form select {
    height: auto;
    min-height: 45px;
}

/* Heading Responsive Fixes */
.animated-heading {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 30px;
    word-wrap: break-word;
}

/* Team Card Responsive Fixes */
.team-card {
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    box-sizing: border-box;
}

/* Live Chat Button Fix */
.live-chat {
    width: fit-content;
    margin: 20px auto;
    white-space: nowrap;
}

/* Modal Responsive Fixes */
.custom-modal {
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    margin: auto;
    box-sizing: border-box;
}

/* Responsive Media Queries */
@media screen and (max-width: 480px) {
    /* Mobile Form Adjustments */
    .contact-form,
    .bug-form {
        padding: 20px;
    }

    .contact-form input,
    .contact-form textarea,
    .bug-form select,
    .bug-form textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Mobile Button Adjustments */
    .contact-form button,
    .bug-form button {
        width: 100%;
        padding: 12px 20px;
    }

    /* Mobile Team Card Adjustments */
    .team-card {
        padding: 20px;
    }

    .avatar {
        width: 80px;
        height: 80px;
    }

    /* Mobile Section Spacing */
    .contact-section,
    .feedback-section,
    .team-section {
        padding-top: 80px;
        padding-bottom: 30px;
    }
}

/* Fix for small height screens */
@media screen and (max-height: 600px) {
    .contact-section,
    .feedback-section,
    .team-section {
        padding-top: 70px;
        padding-bottom: 20px;
    }

    .contact-form,
    .bug-form {
        margin: 10px auto;
    }
}

/* Fix for iOS devices */
@supports (-webkit-touch-callout: none) {
    .contact-form input,
    .contact-form textarea,
    .bug-form select,
    .bug-form textarea {
        font-size: 16px;
    }

    .contact-section,
    .feedback-section,
    .team-section {
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
}

/* Fix for dark mode */
@media (prefers-color-scheme: dark) {
    .contact-form input:focus,
    .contact-form textarea:focus,
    .bug-form select:focus,
    .bug-form textarea:focus {
        border-color: #ffcc00;
        box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
    }
}

/* Animation performance fixes */
@media (prefers-reduced-motion: reduce) {
    .animated-heading,
    .team-card,
    .contact-form,
    .bug-form {
        animation: none;
        transition: none;
    }
}

/* Fix backdrop-filter support */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    .contact-form,
    .bug-form {
        background: rgba(30, 30, 30, 0.95);
    }
}

/* Fix for high contrast mode */
@media (forced-colors: active) {
    .contact-form,
    .bug-form {
        border: 2px solid ButtonText;
    }
}
