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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0; /* MODIFIED: Horizontal padding removed */
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}


.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #7b39ed;
    font-weight: 600;
    font-size: 1.2rem;
}

.logo-img {
    width: 60px;
    height: 60px;
}



.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.2s;
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}

.nav-links a:hover {
    color: #7b39ed;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector select {
    appearance: none;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.btn {
    background: #7b39ed;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #6b2dd4;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Features Section (from index.html) */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #7b39ed;
}

/* Offerings Section (from features.html) */
.offerings {
    padding: 4rem 0;
    background: white;
}

.offerings h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

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

.offering-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.offering-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #7b39ed;
    font-weight: 700;
}

.offering-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.offering-card .price span {
    font-size: 1.2rem;
    font-weight: 500;
    color: #6a737d;
}

.offering-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.offering-card ul li {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 28px;
}

.offering-card ul li::before {
    content: '✓';
    color: #48bb78; /* Green checkmark */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.offering-card .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Steps Section (from features.html) */
.steps-section {
    padding: 4rem 0;
    background: #f0f2f5;
}

.steps-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.step-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    padding: 2rem;
    flex: 1 1 calc(33% - 4rem); /* Approx 3 per row with gap */
    max-width: 380px;
    text-align: center;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.step-card .step-number {
    background: #7b39ed;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(123, 57, 237, 0.3);
}

.step-card h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: #4a5568;
    font-size: 1rem;
}

/* Login Modal Styles (from index.html) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #4a5568;
}

/* Form Group Styles (Common for login modal and contact form) */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.9rem;
}

.form-input, .form-textarea, .form-select { /* Added .form-textarea, .form-select */
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f7fafc;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: #7b39ed;
    box-shadow: 0 0 0 3px rgba(123, 57, 237, 0.1);
    background: white;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #a0aec0;
}

/* Login Button Specific */
.login-btn { /* Note: This class is also used for the general login button in navbar */
    width: 100%; /* This width applies to the modal's login button */
    background: #7b39ed;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1.5rem; /* This margin applies to the modal's login button */
}

.login-btn:hover:not(:disabled) {
    background: #6b2dd4;
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.signup-text {
    text-align: center;
    color: #4a5568;
    font-size: 0.9rem;
}

.signup-link {
    color: #7b39ed;
    text-decoration: none;
    font-weight: 500;
}

.signup-link:hover {
    text-decoration: underline;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff40;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Contact Section Specific Styles (from contact.html) */
.contact-section {
    padding: 4rem 0;
    background: white;
    text-align: center;
}

.contact-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #4a5568;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2.5rem;
    text-align: left;
}

.contact-submit-btn {
    width: 100%;
    background: #7b39ed;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-submit-btn:hover {
    background: #6b2dd4;
}


/* Responsive Styles (Consolidated) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Stacks the main sections (logo, links, nav-right) */
        align-items: center;    /* Horizontally centers the stacked sections */
        gap: 1.5rem;            /* Adds space between the stacked sections */
        padding: 1rem;
    }

    .nav-links {
        display: flex;
        justify-content: center; /* Horizontally centers the links */
        flex-wrap: wrap;         /* Allows links to wrap on very small screens */
        gap: 2rem;               /* Adjusts the space between the links */
        order: 3;                /* Keeps the links at the bottom of the navbar */
    }
    
    .nav-links a {
        margin: 0; /* Resets any default horizontal margins */
    }

    .nav-right {
        display: flex;
        flex-direction: column; /* Stacks the language selector and login button */
        align-items: center;
        gap: 1rem;
    }

    /* --- Other mobile styles remain the same --- */

    .hero h1 {
        font-size: 2rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .offerings-grid, .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        flex: 1 1 100%;
        max-width: none;
    }

    .contact-section h1 {
        font-size: 2rem;
    }
}

/* --- Signup Page Styles --- */

/* Overriding body style for signup page */
body.signup-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.signup-container {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.signup-subtitle {
    color: #4a5568;
    font-size: 1rem;
}

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

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.phone-input-group .form-select {
    width: 120px; /* Adjust width as needed */
    flex-shrink: 0;
}

.phone-input-group .form-input {
    flex-grow: 1;
}

.form-help {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 0.25rem;
}

.signup-btn {
    width: 100%;
    background: #7b39ed;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1.5rem;
}

.signup-btn:hover:not(:disabled) {
    background: #6b2dd4;
}

.signup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-text {
    text-align: center;
    color: #4a5568;
    font-size: 0.9rem;
}

.login-link {
    color: #7b39ed;
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover {
    text-decoration: underline;
}

.success-message {
    background: #c6f6d5;
    color: #2f855a;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.field-error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

.field-error-text {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 0.9rem;
    color: #2d3748;
}

.checkbox-label input {
    width: auto;
    margin-right: 0.75rem;
}

footer {
    text-align: center;
    color: #f7fafc;
    font-size: 0.8rem;
    padding: 1rem;
}

footer a {
    color: #c4b5fd;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles for Signup Page */
@media (max-width: 768px) {
    .signup-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .signup-title {
        font-size: 1.5rem;
    }
}

