/* Root Variables */
:root {
    --primary: #1A1A1A;
    --secondary: #2A4365;
    --accent: #FFD700;
    --highlight: #4299E1;
    --success: #48BB78;
    --error: #E53E3E;
    --background: #F7FAFC;
    --text: #2D3748;
    --text-light: #718096;
    --vibrant: #ffffff;
}

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f4f7fa;
}

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

/* Navigation Bar */
.navbar {
    background-color: var(--primary);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-logo a {
    color: var(--vibrant);
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px;
    transition: all 0.3s ease;
}

.nav-links a.secondary {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 10px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero .fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../assets/hero_photo.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

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

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 3rem;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

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

.feature-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(rgba(51, 51, 51, 0.97), var(--primary));
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin: 20px 0;
}

.feature-list {
    margin-top: 25px;
    padding: 0;
    list-style: none;
    text-align: left;
    width: 100%;
}

.feature-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
}

.feature-list li::before {
    content: "✓";
    color: #FF7F50;
    position: absolute;
    left: 0;
    font-weight: bold;
}



/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: #f8f9fa;
}


.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    padding: 30px;
    background: linear-gradient(rgba(51, 51, 51, 0.97), var(--primary));
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid var(--primary);
}

.step i {
    font-size: 2.5rem;
    color: var(--accent);
    margin: 20px 0;
}

/* Success Stories Section */
.success-stories {
    padding: 100px 0;
    background: linear-gradient(rgba(51, 51, 51, 0.97), var(--primary)),
                url('../assets/pattern-bg.png');
    color: white;
}

.success-stories .section-title {
    color: white;
}

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

.success-story {
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.success-story.featured {
    background: rgba(255, 215, 52, 0.51);
}

.success-story blockquote {
    margin: 0;
    font-style: italic;
}

.success-story cite {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    font-style: normal;
}

/* CTA Buttons Container */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

/* CTA Buttons */
.cta-button {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button.primary {
    background: linear-gradient(45deg, #FF7F50, #FFD700);
    color: white;
    box-shadow: 0 4px 15px rgba(255,127,80,0.3);
}

.cta-button.secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(5px);
}

.cta-button.tertiary {
    background: rgba(255,255,255,0.1);
    color: var(--primary);
    border: 2px solid var(--primary);
    backdrop-filter: blur(5px);
}


.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Bottom CTA Section */
.bottom-cta {
    padding: 100px 0;
    text-align: center;
    background: #f8f9fa;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}


/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icons a {
    color: var(--primary);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1B263B;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 20px;
}

footer .social-icons a {
    color: white;
}

footer .social-icons a:hover {
    color: var(--accent);
}

/* Workout Generator Styles */
.workout-generator {
    padding: 40px 0;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 100px; /* Increased to accommodate labels */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6c757d;
    transition: all 0.3s ease;
    width: 100px;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #e9ecef;
    z-index: 1;
}

.progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 35px; /* Increased spacing between number and label */
    transition: all 0.3s ease;
    color: #6c757d;
}

.progress-step .step-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    bottom: -60px; /* Position below the number */
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

/* character counter */
.error-message {
    color: var(--error);
    font-size: 14px;
    margin-top: 8px;
    display: none;
    transition: all 0.3s ease;
}

.form-control.error {
    border-color: var(--error);
}

.form-control.error:focus {
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.1);
}

/* character counter */
.character-counter {
    margin-top: 8px;
    font-size: 14px;
    color: #6c757d;
}

.character-counter.valid {
    color: var(--success);
}

.character-counter.invalid {
    color: var(--error);
}

/* Active and completed states */
.progress-step.active .step-number {
    border-color: #FF7F50;
    color: #FF7F50;
    background-color: #fff;
}

.progress-step.active .step-label {
    color: #FF7F50;
}

.progress-step.completed .step-number {
    background-color: #FF7F50;
    border-color: #FF7F50;
    color: #fff;
}

.progress-step.completed .step-label {
    color: #FF7F50;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-number-home-page {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--primary);
    border: 4px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    position: absolute;  /* Position absolutely */
    top: -20px;         /* Move up to overlap the top edge */
    left: 50%;          /* Center horizontally */
    transform: translateX(-50%);  /* Perfect centering */
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-step.active .step-number {
    border-color: #FF7F50;
    color: #FF7F50;
}

.progress-step.active .step-label {
    color: #FF7F50;
}

.progress-step.completed .step-number {
    background-color: #FF7F50;
    border-color: #FF7F50;
    color: white;
}

/* Form Steps */
.form-step {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    color: #1B263B;
    font-size: 24px;
    margin-bottom: 10px;
}

.step-description {
    color: #6c757d;
    font-size: 16px;
}

/* Form Groups */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1B263B;
    margin-bottom: 10px;
}

/* Input Styles */
.input-with-icon {
    position: relative;
    max-width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.input-with-icon input,
.input-with-icon textarea {
    padding-left: 45px;
    width: calc(100% - 45px);
    box-sizing: border-box;
}

.input-group {
    display: flex;
    gap: 15px;
    width: 100%;
}

.input-group .input-with-icon {
    flex: 1;
    min-width: 120px;  /* Added minimum width */
}


.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

/* Form Steps */
.form-step {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Height Inputs */
.height-inputs.active {
    display: block;
    width: 100%;
}

.input-group {
    display: flex;
    gap: 15px;
    width: 100%;
}

.input-group .input-with-icon {
    flex: 1;
    width: 100%;
    max-width: none;  /* Remove the max-width constraint */

}

.input-group .input-with-icon input {
    width: 100%;
    padding: 12px 30px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}



.height-inputs .form-control {
    width: 100%;
    box-sizing: border-box;
}

/* Make sure the height input container matches other inputs */
.form-group .height-inputs {
    width: 100%;
}

/* Remove any conflicting styles */
.input-group .input-with-icon {
    max-width: none;  /* Remove this constraint */
}

/* Unit Toggle */
.unit-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.unit-button {
    padding: 10px 20px;
    border: 2px solid #1B263B;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unit-button i {
    font-size: 14px;
}

.unit-button.selected {
    background-color: #1B263B;
    color: white;
}

/* Height Inputs */
.height-inputs {
    display: none;
}

.height-inputs.active {
    display: block;
}

.input-group {
    display: flex;
    gap: 15px;
}

.input-group .input-with-icon {
    flex: 1;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.next-step,
.btn-primary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

/* For steps that have both back and next buttons */
.form-navigation:has(.prev-step) {
    justify-content: space-between;
    width: 100%;
}

.form-navigation:has(.prev-step) .next-step,
.form-navigation:has(.prev-step) .btn-primary {
    margin: 0;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #FF7F50, #FFD700);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.2);
}

.btn-secondary {
    background: none;
    border: 2px solid #1B263B;
    color: #1B263B;
}

.btn-secondary:hover {
    background-color: #1B263B;
    color: white;
}

/* Help Text */
.help-text {
    margin-top: 8px;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-text i {
    color: #FFD700;
}

/* Error Messages */
.error-message {
    color: var(--error);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-control.error {
    border-color: var(--error);
}

/* Payment Section */
.payment-section {
    margin-top: 30px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.payment-header h3 {
    color: #1B263B;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.price-tag {
    text-align: right;
}

.price-amount {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1B263B;
}

.price-description {
    font-size: 14px;
    color: #6c757d;
}

.payment-features {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.feature-item i {
    color: var(--success);
}

.checkout-button {
    width: 100%;
    justify-content: center;
    padding: 16px;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Review Summary Styles */
.review-summary {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    font-weight: 600;
    color: #1B263B;
}

.review-value {
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .generator-container {
        padding: 0 15px;
    }

    .form-step {
        padding: 20px;
    }

    .progress-bar {
        padding: 0 20px;
    }

    .step-label {
        font-size: 12px;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .form-navigation {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .payment-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .price-tag {
        text-align: center;
    }

    .input-group {
        flex-direction: row;  /* Keep side by side on mobile */
        gap: 10px;
    }

    .input-group .input-with-icon {
        flex: 1;
        max-width: none;  /* Remove max-width constraint */
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step:not(.hidden) {
    animation: fadeIn 0.3s ease-out;
}

/* Photos for team members */

.team-member {
    text-align: center;
    padding: 2rem;
}

.team-member-photo {
    width: 150px;  /* Fixed size for the circle */
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;  /* Makes it circular */
    overflow: hidden;  /* Ensures the image stays within the circle */
    border: 3px solid #FFD700;  /* Gold border */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* This will ensure the image covers the area properly */
}

.team-member h3 {
    color: #1B263B;
    margin-bottom: 0.5rem;
}

.team-member .title {
    color: #FF7F50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member .bio {
    color: #6c757d;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}