* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(40, 167, 69, 0.6);
    }
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.logo {
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 12px;
}

.logo-text {
    padding-top: 5px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

nav {
    display: flex;
    justify-content: space-between;
}

ul {
    display: flex;
    list-style: none;
    padding: 15px 20px;
    align-items: center;
}

ul li {
    margin-left: 10px;
}



a {
    text-decoration: none;
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

a:hover {
    color: #28a745;
    transform: translateY(-2px);
}

header {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

header p {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.6;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.app-store-btn {
    display: inline-block;
    height: 50px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
}

.app-store-btn img {
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.about {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(40, 167, 69, 0.03) 50%, transparent 60%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInLeft 1s ease-out 0.3s forwards;
}

.intro {
    font-size: 20px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInLeft 1s ease-out 0.5s forwards;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.7s; }
.feature-item:nth-child(2) { animation-delay: 0.9s; }
.feature-item:nth-child(3) { animation-delay: 1.1s; }

.feature-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    margin-top: 8px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

.feature-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.feature-content p {
    color: #6c757d;
    line-height: 1.5;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-image {
    max-width: 140%;
    height: auto;
    width: 140%;
    max-height: 750px;
    opacity: 0;
    animation: fadeInRight 1.2s ease-out 0.8s forwards;
    transition: transform 0.3s ease;
}

.mockup-image:hover {
    transform: scale(1.05) rotate(2deg);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .mockup-image {
        max-height: 550px;
    }
}

.comparison {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.comparison h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.comparison-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    transition: box-shadow 0.3s ease;
}

.comparison-table:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: #2c3e50;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.table-header > div {
    padding: 20px 15px;
    text-align: center;
}

.category-header {
    text-align: left !important;
    font-weight: 700;
}

.app-header.nutrinex {
    background: #28a745;
    font-weight: 700;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.table-row:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.table-row:last-child {
    border-bottom: none;
}

.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.features-intro {
    text-align: center;
    font-size: 18px;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 60px auto;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid #e9ecef;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    overflow: hidden;
}

.feature-card:nth-child(1) { animation-delay: 0.6s; }
.feature-card:nth-child(2) { animation-delay: 0.8s; }
.feature-card:nth-child(3) { animation-delay: 1.0s; }
.feature-card:nth-child(4) { animation-delay: 1.2s; }
.feature-card:nth-child(5) { animation-delay: 1.4s; }
.feature-card:nth-child(6) { animation-delay: 1.6s; }

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 167, 69, 0.1), transparent);
    transition: left 0.6s;
}

.feature-card:hover:before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.feature-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 25px auto;
    animation: bounceIn 0.8s ease-out;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-number {
    transform: scale(1.1) rotate(360deg);
    animation: glow 2s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 16px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-card {
        padding: 30px 25px;
    }
}

.category {
    padding: 20px 15px;
    font-weight: 500;
    color: #2c3e50;
    background: #f8f9fa;
}

.check {
    padding: 20px 15px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.check.nutrinex {
    background: linear-gradient(135deg, #f8fff9 0%, #f0fff4 100%);
    color: #28a745;
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: 14px;
    }
    
    .table-header {
        font-size: 16px;
    }
    
    .table-header > div,
    .category,
    .check {
        padding: 15px 8px;
    }
}

footer {
    border-top: 1px solid #333;
    padding: 40px 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.footer-content {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    color: #6c757d;
    font-size: 14px;
}

#copyright {
    text-align: left;
    margin: 0;
}

/* Social Media Icons in Footer */
nav[aria-label="Social media links"] {
    display: flex;
    gap: 5px; /* Proper spacing between icons */
    align-items: center;
}

nav[aria-label="Social media links"] a {
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 20px;
    color: #6c757d;
    text-decoration: none;
}

nav[aria-label="Social media links"] a:hover {
    transform: translateY(-3px) scale(1.2);
    color: #28a745;
}

/* Legacy support for old #socials selector */
#socials {
    text-align: right;
    float: right;
}

#socials a {
    margin-left: 20px; /* Fixed: positive margin for proper spacing */
    transition: all 0.3s ease;
    display: inline-block;
}

#socials a:hover {
    transform: translateY(-3px) scale(1.2);
    color: #28a745;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Additional Smooth Animations */
* {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Smooth Scrolling for ID navigation */
html {
    scroll-behavior: smooth;
}

/* Support Button Styling */
.support-btn {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 2px solid transparent !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2) !important;
    display: inline-block !important;
    margin: 0 !important;
    z-index: 10 !important;
}

.support-btn:before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent) !important;
    transition: left 0.6s ease !important;
    pointer-events: none !important;
}

/* Only trigger hover when directly hovering the support button itself */
a.support-btn:hover {
    background: linear-gradient(45deg, #218838, #17a2b8) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

a.support-btn:hover:before {
    left: 100% !important;
}

.support-btn:active {
    transform: translateY(-1px) scale(1.02) !important;
    transition: all 0.1s ease !important;
}

/* Ensure navigation items don't interfere with each other */
nav ul li {
    position: relative !important;
    z-index: 1 !important;
}

nav ul li:last-child {
    z-index: 10 !important;
}

/* Improved Mobile Responsiveness for Animations */
@media (max-width: 768px) {
    .feature-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .mockup-image:hover {
        transform: scale(1.02) rotate(1deg);
    }
    
    /* Footer mobile responsiveness */
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    nav[aria-label="Social media links"] {
        justify-content: center;
        gap: 30px; /* Larger spacing on mobile for easier touch */
    }
    
    nav[aria-label="Social media links"] a {
        font-size: 24px; /* Larger icons for mobile */
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth gradient animations */
.app-header.nutrinex {
    background: linear-gradient(45deg, #28a745, #20c997);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Email Signup Section */
.email-signup {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.email-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2328a745' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.signup-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.signup-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Form Styling */
.signup-form {
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    gap: 0;
    max-width: 450px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
    background: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-group:focus-within {
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.2);
}

#email-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #2c3e50;
}

#email-input::placeholder {
    color: #adb5bd;
    transition: color 0.3s ease;
}

#email-input:focus::placeholder {
    color: #6c757d;
}

.signup-btn {
    padding: 18px 30px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.signup-btn:hover {
    background: linear-gradient(45deg, #218838, #17a2b8);
    transform: translateX(-2px);
}

.signup-btn:active {
    transform: translateX(-2px) scale(0.98);
}

.signup-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading state */
.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Form Feedback */
.form-feedback {
    min-height: 24px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.form-feedback.success {
    color: #28a745;
}

.form-feedback.error {
    color: #dc3545;
}

.form-feedback.success::before {
    content: '✓ ';
    font-weight: bold;
}

.form-feedback.error::before {
    content: '⚠ ';
    font-weight: bold;
}

/* Privacy Notice */
.privacy-notice {
    color: #6c757d;
    margin: 0;
    font-size: 13px;
}

.privacy-notice i {
    margin-right: 5px;
    color: #28a745;
}

/* Signup Benefits */
.signup-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

.benefit-item i {
    color: #28a745;
    font-size: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .email-signup {
        padding: 60px 20px;
        margin-top: 60px;
    }
    
    .signup-content h2 {
        font-size: 2rem;
    }
    
    .signup-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .form-group {
        flex-direction: column;
        border-radius: 15px;
        max-width: 100%;
    }
    
    #email-input {
        border-radius: 15px 15px 0 0;
    }
    
    .signup-btn {
        border-radius: 0 0 15px 15px;
        padding: 20px;
    }
    
    .signup-benefits {
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }
    
    .benefit-item {
        justify-content: center;
    }
}

/* Animation for form elements */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-content > * {
    animation: slideInUp 0.6s ease-out forwards;
}

.signup-content h2 {
    animation-delay: 0.1s;
}

.signup-description {
    animation-delay: 0.2s;
}

.signup-form {
    animation-delay: 0.3s;
}

.signup-benefits {
    animation-delay: 0.4s;
}

/* Support Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInModal 0.3s ease-out forwards;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInModal 0.3s ease-out forwards;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-description {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Support Form Styling */
.support-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.support-form label {
    display: block;
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.support-form label:first-child {
    margin-top: 0;
}

.support-form input,
.support-form select,
.support-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: #ffffff;
    box-sizing: border-box;
    line-height: 1.5;
    color: #495057;
    font-weight: 400;
}

.support-form input::placeholder,
.support-form textarea::placeholder,
.support-form select option[value=""] {
    color: #adb5bd;
    font-weight: 400;
    opacity: 1;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.12);
    transform: translateY(-2px);
    background: #fcfcfc;
}

.support-form input:hover:not(:focus),
.support-form select:hover:not(:focus),
.support-form textarea:hover:not(:focus) {
    border-color: #c3e6cb;
    transform: translateY(-1px);
}

.support-form textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
    font-family: inherit;
}

.support-form select {
    cursor: pointer;
    appearance: none;
}

/* Input validation states */
.support-form input:invalid:not(:placeholder-shown),
.support-form textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.support-form input:valid:not(:placeholder-shown),
.support-form textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Form spacing improvements */

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #218838, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

/* Form Feedback */
.support-form .form-feedback {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.support-form .form-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.support-form .form-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animations */
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .support-form label {
        font-size: 14px;
        margin-top: 18px;
        margin-bottom: 6px;
    }
    
    .support-form label:first-child {
        margin-top: 0;
    }
    
    .support-form input,
    .support-form select,
    .support-form textarea {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}