/* ChooseFit Main Stylesheet */

:root {
    --primary-color: #00ACC2;
    --secondary-color: #00ACC2;
    --accent-color: #FF9800;
    --dark-color: #333;
    --light-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --error-color: #f44336;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* Header & Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.nav-brand a {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.btn-login {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #00ACC2;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #00ACC2;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #00ACC2;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    height: auto;
    overflow: hidden;
    color: white;
    text-align: center;
    width: 100%;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 172, 194, 0.8) 0%, rgba(0, 172, 194, 0.8) 100%);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero navigation arrows removed - using indicators only */

.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Features Section */
.features {
    padding: 4rem 0;
}

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

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* CTA Section */
.cta {
    background: var(--light-color);
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Page Header */
.page-header {
    background: var(--light-color);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Forms */
.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-actions {
    margin-top: 2rem;
}

/* Questionnaire */
.questionnaire {
    padding: 3rem 0;
}

.questionnaire-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Auth Section */
.auth-section {
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.auth-form {
    margin-top: 2rem;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.auth-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
}

.auth-message.success {
    background: #d4edda;
    color: #155724;
}

.auth-message.error {
    background: #f8d7da;
    color: #721c24;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Plans */
.plans {
    padding: 3rem 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(var(--plans-per-row, 3), 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* Old plans-grid (keeping for backward compatibility) */
.plans-grid-old {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card .btn-block {
    margin-top: auto;
    margin-bottom: 0;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}

.plan-badge-popular {
    background: #FF9800;
    /* Orange */
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.plan-badge-recommended {
    background: #FFC107;
    /* Yellow/Amber */
    color: #333;
    /* Dark text for better contrast on yellow */
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.plan-price {
    margin: 1.5rem 0;
}

.plan-price .currency {
    font-size: 1.25rem;
    vertical-align: top;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-light);
}

.plan-description {
    margin: 1rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.plan-features {
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Checkout */
.checkout-section {
    padding: 3rem 0;
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-form-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.checkout-form-container h1,
.checkout-form-container h2 {
    color: var(--primary-color);
}

.checkout-summary {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h2 {
    color: var(--primary-color);
}

.order-details {
    margin-bottom: 1.5rem;
}

.order-total {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
}

/* Order Confirmation */
.order-confirmation {
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.confirmation-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.order-info {
    margin: 2rem 0;
    text-align: left;
}

.order-info p {
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 5px;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Dashboard */
.dashboard-section {
    padding: 3rem 0;
}

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

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-card h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.countdown-timer {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.countdown-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.notifications-list,
.downloads-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item,
.download-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.notification-item:last-child,
.download-item:last-child {
    border-bottom: none;
}

.download-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.download-item a:hover {
    text-decoration: underline;
}

.progress-history {
    margin-top: 2rem;
}

.progress-entry {
    padding: 1rem;
    background: var(--light-color);
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background: var(--light-color);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-light);
}

.testimonial-author strong {
    display: block;
    color: var(--primary-color);
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Mission */
.mission {
    padding: 4rem 0;
}

.mission h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.mission p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Account Tabs */
.account-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.account-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.orders-list {
    margin-top: 1rem;
}

.order-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 20px;
    display: none;
}

#notificationsLink {
    position: relative;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-color);
}

#notificationsLink:hover {
    color: var(--primary-color);
}

/* Progress Chart Card */
.progress-chart-card {
    min-height: 400px;
}

.progress-chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

#progressChart {
    max-height: 400px;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

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

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .plan-card.featured {
        transform: scale(1);
    }

    .photos-upload-section {
        grid-template-columns: 1fr !important;
    }
}

/* Photo Upload Styles */
.photos-upload-section {
    margin-bottom: 2rem;
}

.photo-upload-box {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.photo-upload-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.photo-preview {
    background: white;
    border: 2px dashed #ddd;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
}

.chart-period-filters {
    display: flex;
    gap: 0.5rem;
}

.chart-period-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.chart-period-btn:hover {
    background: #f8f9fa;
    border-color: #00ACC2;
}

.chart-period-btn.active {
    background: #00ACC2;
    color: #fff;
    border-color: #00ACC2;
}

.progress-card {
    grid-column: 1 / -1;
}

.progress-form {
    min-height: 300px;
}

.progress-history {
    min-height: 300px;
}

@media (max-width: 768px) {
    .progress-card>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}