/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary,
.btn-secondary {
    background: transparent;
    color: inherit;
    border: none;
    box-shadow: none;
    padding: 0;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    background: transparent;
}

.gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    margin-bottom: 4rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Ensure no underline on brand links */
a.nav-brand:hover {
    text-decoration: none;
}

a.footer-brand:hover {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4f46e5;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: #ffffff;
    color: #1a1a1a;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.coming-soon {
    margin-bottom: 2.5rem;
    text-align: center;
}

.coming-soon-text {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn img {
    height: 50px;
    width: auto;
    max-width: 150px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.app-showcase-wrapper {
    position: relative;
    max-width: 325px;
    width: 100%;
}

.hero-app-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: rotateX(5deg) rotateY(-5deg) rotateZ(2deg);
    transition: transform 0.3s ease;
}

.hero-app-image:hover {
    transform: rotateX(3deg) rotateY(-3deg) rotateZ(1deg) scale(1.02);
}


.floating-cards {
    position: absolute;
    top: 0;
    left: calc(50% + 220px);
    width: 300px;
    height: 100%;
}

.feature-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.2rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
    color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 16px 50px rgba(102, 126, 234, 0.25);
    background: rgba(255, 255, 255, 0.98);
}

.card-1 {
    top: 15%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 42%;
    left: 5%;
    animation-delay: 2s;
}

.card-3 {
    top: 69%;
    left: 0;
    animation-delay: 4s;
}

.card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px;
    color: white;
    padding: 6px;
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

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

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.icon-bg {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
    color: white;
}

.icon-bg img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* App Showcase */
.app-showcase {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.screenshot-item {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #f0f0f0;
}

.screenshot-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.screenshot-item p {
    color: #666;
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

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

.about-text {
    max-width: 800px;
    text-align: center;
}

.about-text h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #4f46e5;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.7;
}

.about-features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.about-feature h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.about-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.about-feature p {
    color: #666;
    margin-bottom: 0;
}


/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #4f46e5;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-details span {
    color: #666;
    font-size: 0.9rem;
}

.contact-form {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 0 8px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 16px;
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 500;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -8px;
    font-size: 12px;
    color: #4f46e5;
    font-weight: 600;
}

.form-group .clean-select ~ label {
    top: -8px;
    font-size: 12px;
    color: #4f46e5;
    font-weight: 600;
}

.form-group .clean-select:focus ~ label {
    color: #4f46e5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: #4f46e5;
}

.form-group .clean-select {
    width: 100%;
    padding: 16px 0 8px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: all 0.3s ease;
}

.form-group .clean-select:invalid {
    color: #94a3b8;
}

.form-group .clean-select:focus {
    border-bottom-color: #4f46e5;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Montserrat', sans-serif;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line,
.form-group .clean-select:focus ~ .form-line {
    width: 100%;
}

.submit-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    margin: 1rem 0 1rem 0;
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* File Upload Styling */
.file-upload-container {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.file-input {
    display: none;
}

.file-upload-label {
    display: block;
    width: 100%;
    padding: 20px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #4f46e5;
    background: #f1f5f9;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.file-icon {
    width: 32px;
    height: 32px;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.file-upload-label:hover .file-icon {
    color: #4f46e5;
}

.file-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-main-text {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
}

.file-sub-text {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'Montserrat', sans-serif;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-top: 8px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 2px;
}

.file-size {
    font-size: 12px;
    color: #64748b;
    font-family: 'Montserrat', sans-serif;
}

.remove-file {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remove-file:hover {
    background: #dc2626;
}

.file-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    font-family: 'Montserrat', sans-serif;
}

.form-note {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* Privacy Section */
.privacy {
    padding: 80px 0;
    background: white;
}

.privacy-summary {
    text-align: center;
    margin-bottom: 3rem;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.privacy-item {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.privacy-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.privacy-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.privacy-item p {
    color: #666;
    line-height: 1.6;
}

.privacy-details {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: #1a1a1a;
}

.privacy-details ul {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.privacy-details li {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.6;
}

.privacy-contact {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.privacy-contact a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.privacy-update {
    text-align: center;
    margin-top: 2rem;
    color: #666;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4f46e5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-download {
    display: flex;
    gap: 1rem;
}

.footer-download-btn img {
    height: 35px;
    width: auto;
    max-width: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .floating-cards {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        padding: 0 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .privacy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Image Placeholder Styles */
img[src*="placeholder"] {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

img[src*="placeholder"]::after {
    content: "Image Placeholder";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #4a5568;
    font-size: 12px;
    text-align: center;
}

/* Smooth Animations */
.feature-item,
.screenshot-item,
.contact-item,
.privacy-item {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #0000FF;
        border: 2px solid #FFFFFF;
    }
    
    .btn-secondary {
        background: #FFFFFF;
        color: #000000;
        border: 2px solid #000000;
    }
}

/* ================================
   Early Access Modal Styles
   ================================ */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Container */
.modal-container {
    max-width: 500px;
    width: 100%;
    animation: slideUp 0.3s ease-out;
}

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

/* Modal Card */
.modal-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 64px 32px 32px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(71, 85, 105, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #475569;
}

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

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.modal-header p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Modal Form */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

.modal-form label {
    display: none;
}

.modal-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
}

.modal-form input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.modal-form input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.modal-form .form-error {
    font-size: 13px;
    color: #ef4444;
    display: none;
}

.modal-form .form-error.show {
    display: block;
}

/* Submit Button */
.modal-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 8px;
    font-family: inherit;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.4);
}

.modal-submit-btn:active {
    transform: translateY(0);
}

.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Button Loader */
.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

.spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Form Message */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Modal Footer */
.modal-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.modal-footer p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

/* Very Small Screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .modal-overlay {
        padding: 12px;
    }

    .modal-card {
        padding: 52px 20px 20px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .modal-header p {
        font-size: 13px;
    }

    .modal-form {
        gap: 16px;
    }

    .modal-form input {
        font-size: 16px;
        padding: 12px 14px;
    }

    .modal-form input:focus {
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    }

    .modal-submit-btn {
        font-size: 15px;
        padding: 12px 18px;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) and (min-width: 376px) {
    .modal-overlay {
        padding: 16px;
    }

    .modal-card {
        padding: 56px 24px 24px;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .modal-header p {
        font-size: 14px;
    }

    .modal-form {
        gap: 18px;
    }

    .modal-form input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .modal-form input:focus {
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    }

    .modal-submit-btn {
        font-size: 15px;
        padding: 13px 20px;
    }
}

/* Tablet Responsive */
@media (max-width: 768px) and (min-width: 641px) {
    .modal-card {
        padding: 60px 28px 28px;
    }

    .modal-header h2 {
        font-size: 26px;
    }

    .modal-header p {
        font-size: 14.5px;
    }

    .modal-form input {
        font-size: 15.5px;
        padding: 13px 15px;
    }

    .modal-submit-btn {
        font-size: 15.5px;
        padding: 13.5px 22px;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}