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

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    width: 100%;
    min-width: 320px; /* Minimum width for mobile */
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Container - Fixed width issue */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* For wider screens, allow full width */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Header Styles */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    min-height: 50px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section img {
    height: 45px;
    width: 45px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4338ca;
    text-decoration: none;
    white-space: nowrap;
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

nav a:hover {
    background: #f0f0f0;
    color: #4338ca;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem); /* Responsive font size */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #4338ca;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    background: #3730a3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 56, 202, 0.3);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-secondary {
    background: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Form Styles */
.form-section {
    background: white;
    padding: 60px 20px;
    width: 100%;
}

.order-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: clamp(20px, 5vw, 40px);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #4338ca;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

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

/* Service Tiers */
.tiers-section {
    padding: 60px 20px;
    background: #f9fafb;
    width: 100%;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tier-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.tier-card.selected {
    border-color: #4338ca;
    background: #f0f4ff;
}

.tier-card.popular {
    border-color: #10b981;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.tier-price {
    font-size: 2rem;
    font-weight: 700;
    color: #4338ca;
    margin-bottom: 20px;
}

.tier-features {
    list-style: none;
    margin-top: 20px;
}

.tier-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.tier-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Trust Indicators */
.trust-section {
    padding: 60px 20px;
    background: white;
    text-align: center;
    width: 100%;
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.trust-item {
    text-align: center;
    padding: 10px;
}

.trust-number {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #4338ca;
    margin-bottom: 10px;
}

/* Features Section */
.features-section {
    padding: 60px 20px;
    background: #f9fafb;
    width: 100%;
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1f2937;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-error {
    background: #fee;
    border-color: #dc2626;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border-color: #10b981;
    color: #166534;
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px 10px;
}

.footer-links a:hover {
    color: white;
}

/* Login/Register Page Styles */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: clamp(20px, 5vw, 40px);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #4338ca;
    margin-bottom: 10px;
}

/* File Upload Styling */
input[type="file"] {
    display: none;
}

.file-label {
    display: block;
    padding: 12px;
    background: #f3f4f6;
    border: 2px dashed #9ca3af;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-label:hover {
    border-color: #4338ca;
    background: #f0f4ff;
}

/* Section Headers */
section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    margin-bottom: 20px;
    color: #1f2937;
}

section p.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #4338ca;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Guarantee Section */
.guarantee-section {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
    width: 100%;
}

.guarantee-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.guarantee-icon {
    font-size: clamp(3rem, 6vw, 4rem);
    margin-bottom: 20px;
}

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

.guarantee-point {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    padding: 10px;
}

/* CTA Section */
.cta-section {
    background: #4338ca;
    color: white;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-section .btn {
    background: white;
    color: #4338ca;
}

.cta-section .btn:hover {
    background: #f0f0f0;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    nav {
        width: 100%;
        justify-content: center;
        gap: 5px;
    }
    
    nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .tiers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .guarantee-points {
        flex-direction: column;
        gap: 10px;
    }
    
    section {
        padding: 40px 20px;
    }
    
    .order-form {
        padding: 20px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .tiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    header, footer, nav, .btn {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}
