/* Global Styles */
:root {
    --primary-color: #ffcc00;
    --primary-light: #ffe066;
    --primary-dark: #ffaa00;
    --secondary-color: #1a1a1a;
    --accent-color: #ff9500;
    --accent-dark: #e67e22;
    --accent-light: #ffc04d;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --medium-gray: #e0e0e0;
    --dark-gray: #777;
    --white: #fff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --primary-gradient: linear-gradient(135deg, #ffcc00, #ff9500);
    --primary-gradient-hover: linear-gradient(135deg, #ff9500, #ff7b00);
    --dark-gradient: linear-gradient(135deg, #1a1a1a, #333);
    --light-gradient: linear-gradient(135deg, #f8f9fa, #f0f0f0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fix for white space on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 110px;
    display: flex;
    align-items: center; /* This centers the content vertically */
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    opacity: 0.90;
    height: 80px;
    transition: all 0.4s ease; /* Ensure the transition applies when scrolling down */
    align-items: center; /* Maintain vertical centering when scrolled */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 90px;
    margin: 0; /* Remove vertical margin to ensure perfect centering */
    transition: all 0.4s ease;
}

.header.scrolled .header-content {
    height: 70px;
    margin: 0; /* Remove vertical margin to ensure perfect centering */
}

.logo img {
    height: 80px;
    transition: all 0.4s ease;
}

.header.scrolled .logo img {
    height: 55px;
}

.nav-list {
    display: flex;
    transition: all 0.4s ease;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.4s ease;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/calculator-preview.png') no-repeat center 40%/cover;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Removed the yellow gradient overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

.hero p {
    font-size: 0.95rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    text-align: center;
    padding: 0;
}

.desktop-nowrap {
    white-space: nowrap;
}

.mobile-break {
    display: none;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-btns .btn {
    min-width: 180px;
    padding: 15px 30px;
    font-weight: 600;
    transition: all 0.4s ease;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}


/* Services Overview */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    height: 60px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.services-cta {
    text-align: center;
    margin-top: 40px;
}

/* Services Page Styles */
.service-item {
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
    align-items: center;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-content {
    flex: 1;
}

.service-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-features, 
.service-process {
    margin-bottom: 25px;
}

.service-features h3, 
.service-process h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-features ul, 
.service-process ul,
.service-process ol {
    padding-left: 20px;
}

.service-features ul li, 
.service-process ul li,
.service-process ol li {
    margin-bottom: 10px;
    position: relative;
}

.service-features ul li {
    list-style-type: none;
    padding-left: 25px;
}

.service-features ul li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.service-process ol li {
    list-style-type: decimal;
    padding-left: 10px;
}

.service-note {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 5px;
    font-style: italic;
    margin-bottom: 25px;
}

.service-cta {
    margin-top: 30px;
}

/* Recent Projects Section */
.recent-projects {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f9f9, #f5f5f5);
    position: relative;
    overflow: hidden;
}

.recent-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.05) 0%, rgba(255, 153, 0, 0.05) 100%);
    z-index: 1;
}

.recent-projects .container {
    position: relative;
    z-index: 2;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 204, 0, 0.2);
}

.project-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to right, #ffffff, #f9f9f9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffcc00, #ff9500);
    border-radius: 50%;
    margin-right: 15px;
    color: #1a1a1a;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.project-title {
    flex-grow: 1;
}

.project-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: #222;
}

.project-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.project-stage {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}

.stage1 {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.15), rgba(255, 149, 0, 0.15));
    color: #ff9500;
}

.optimizare-tcu {
    background-color: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-stats {
    padding: 20px;
}

.stat-comparison {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.project-image {
    height: 180px;
    overflow: hidden;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
}

.stat-values {
    display: flex;
    gap: 15px;
}

.stat-stock {
    font-weight: 500;
    color: #666;
    background-color: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
}

.stat-tuned {
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.stat-improvement {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding: 8px 15px;
    background: linear-gradient(to right, rgba(var(--primary-rgb), 0.05), rgba(var(--primary-rgb), 0.15));
    border-radius: 5px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

.stat-row.stock {
    background-color: #f5f5f5;
}

.stat-row.tuned {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1), rgba(255, 149, 0, 0.1));
}

.stat-label {
    font-weight: 500;
    color: #555;
}

.stat-hp, .stat-torque {
    font-weight: 600;
    color: #333;
}

.stat-row.tuned .stat-hp, .stat-row.tuned .stat-torque {
    color: var(--primary-color);
}

.stat-improvement {
    position: relative;
    margin-top: 20px;
}

.improvement-badge {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: var(--primary-color);
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 2px solid var(--primary-color);
}

.improvement-badge .improvement-value {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
}

.improvement-badge .improvement-torque {
    font-size: 1.1rem;
    color: #ffffff;
}

.improvement-badge::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(255, 204, 0, 0.15);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.improvement-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.improvement-bar .bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 75%;
    background: linear-gradient(to right, #ffcc00, #ff9500);
    border-radius: 4px;
    animation: fillBar 1.5s ease-out forwards;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.view-more {
    text-align: center;
    margin-top: 50px;
}

.view-more .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.3);
    transition: all 0.4s ease;
}

.view-more .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 204, 0, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

@keyframes fillBar {
    0% {
        width: 0;
    }
    100% {
        width: 75%;
    }
}

/* Offer Popup */
.offer-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.5s ease;
    justify-content: center;
    align-items: center;
}

.offer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    z-index: -1;
}

.offer-popup.active {
    display: flex;
    opacity: 1;
}

.offer-container {
    max-width: 500px;
    width: 90%;
    margin: auto;
    position: relative;
}

.offer-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
    width: 100%;
    position: relative;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.offer-emoji {
    font-size: 42px;
    background: rgba(var(--primary-rgb), 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: pulse 2s infinite;
    margin-top: 5px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
    }
    50% {
        box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.4);
    }
    100% {
        box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
    }
}

/* Stilizare pentru butonul dezactivat */
#continueButton:disabled {
    background: #cccccc !important; /* Gri deschis pentru fundalul butonului */
    color: #888888 !important; /* Gri închis pentru text */
    cursor: not-allowed !important; /* Cursor de tip 'not-allowed' */
    box-shadow: none !important; /* Fără umbră */
    opacity: 0.7 !important; /* Opacitate redusă */
    transform: none !important; /* Fără transformare la hover */
    pointer-events: none !important; /* Nu primește evenimente de mouse */
}

/* Resetare efecte de hover pentru butonul dezactivat */
#continueButton:disabled:hover {
    background: #cccccc !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Stilizare suplimentară pentru afișarea stării dezactivate a butonului */
.continue-btn-container button[disabled]::before {
    content: none !important; /* Elimină efectul de hover dacă există */
}

.offer-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
    white-space: nowrap; /* Previne împărțirea pe mai multe linii */
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ff3b30;
    margin: 0 0 15px;
    animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.offer-text p {
    font-size: 16px;
    color: #666;
    margin: 0 0 5px;
}

.offer-steps {
    width: 100%;
    margin-top: 10px;
}

.offer-step {
    display: none;
    width: 100%;
}

.offer-step.active {
    display: block;
}

.offer-btn {
    margin: 15px 0;
    text-align: center;
    width: 100%;
}

.offer-btn button {
    width: 80%;
    max-width: 250px;
}

.follow-instructions {
    margin: 10px 0;
    text-align: center;
    width: 100%;
}

.follow-instructions h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.social-follow-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.social-follow-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    margin-bottom: 12px;
    border: 1px solid transparent;
}

.social-follow-item:hover {
    background: rgba(255, 204, 0, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 204, 0, 0.3);
}

.social-follow-item.followed {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.social-follow-link {
    flex: 1;
    padding: 5px 0;
    font-size: 15px;
}

.social-follow-link:hover {
    color: var(--primary-color);
}

.follow-status {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #eee;
    transition: all 0.3s ease;
}

.social-follow-item.followed .follow-status {
    background: rgba(76, 175, 80, 0.2);
    color: #2E7D32;
}

.continue-btn-container {
    text-align: center;
    margin: 15px 0;
    width: 100%;
}

.continue-btn-container button {
    width: 80%;
    max-width: 250px;
}

.car-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.car-form h4 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.close-offer {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.close-offer:hover {
    color: var(--primary-color);
}

/* Process Timeline */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.process-timeline:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
    left: 25px;
    top: 0;
}

.process-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 50px;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    z-index: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* FAQ Styles */
.faq-section {
    background-color: var(--light-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(255, 204, 0, 0.1);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 300px;
}

/* Why Us Section */
.why-us {
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.feature {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    margin-right: 20px;
}

.feature-icon img {
    height: 50px;
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Calculator Promo */
.calculator-promo {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.calculator-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.calculator-text {
    flex: 1;
}

.calculator-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.calculator-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.calculator-image {
    flex: 1;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    object-position: center 40%;
    object-fit: cover;
}

.calculator-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.calculator-image:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.calculator-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calculator-image:hover::after {
    opacity: 1;
}

/* Testimonials */
.testimonials {
    background-color: var(--light-gray);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(to right, var(--secondary-color), #333);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    white-space: nowrap;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-social h3 {
    text-align: center;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #ffcf33; /* lighten primary for hover */
    text-decoration: underline;
}

/* Page Title */
.page-title {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/page-title-bg.jpg') no-repeat center center/cover;
    text-align: center;
    color: var(--white);
}

.page-title h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-title p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Calculator Specific Styles */
.calculator-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #f0f0f0);
    position: relative;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.05), rgba(255, 149, 0, 0.05));
    z-index: 1;
}

.calculator-section .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.calculator-wrapper {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 50px;
}

.calculator-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #ffcc00, #ff9500);
    color: #1a1a1a;
    text-align: center;
}

.calculator-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.calculator-header p {
    opacity: 0.9;
    font-size: 1rem;
    margin: 0;
}

.calculator-tabs {
    display: flex;
    border-bottom: 1px solid var(--medium-gray);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    background-color: var(--light-gray);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--secondary-color);
    font-size: 1rem;
}

.tab-btn i {
    margin-right: 8px;
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-dark);
}

.calculator-content {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    gap: 30px;
}

.calculator-form {
    flex: 1;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white);
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.tuning-options {
    margin-bottom: 30px;
}

.options-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--secondary-color);
}

.options-label i {
    color: var(--primary-color);
    margin-right: 5px;
}

select, input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white);
    transition: var(--transition);
}

select:focus, input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.tuning-stage-options {
    display: flex;
    gap: 30px;
}

.radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid var(--medium-gray);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.radio-container:hover .radio-custom {
    border-color: var(--primary-color);
}

.radio-container input:checked ~ .radio-custom {
    border-color: var(--primary-color);
    background-color: #fff;
}

.radio-custom:after {
    content: "";
    position: absolute;
    display: none;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-gradient);
}

.radio-container input:checked ~ .radio-custom:after {
    display: block;
}

.radio-label {
    font-weight: 500;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.radio-container input:checked ~ .radio-label {
    color: var(--primary-dark);
}

.btn-calculate {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-calculate i {
    font-size: 1.2rem;
}

.btn-calculate:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.calculator-results {
    flex: 1;
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 25px;
}

.results-header {
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.results-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.results-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: var(--secondary-color);
}

.no-results-message {
    text-align: center;
    padding: 40px 0;
    color: var(--dark-gray);
}

.no-results-message img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-results-message p {
    font-size: 1.1rem;
    margin: 0;
}

.comparison-chart {
    margin-bottom: 25px;
}

.chart-container {
    height: 200px;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.comparison-details {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.detail-values {
    font-weight: 600;
    color: var(--secondary-color);
}

.tuned-row .detail-values {
    color: var(--accent-color);
}

.improvement-row {
    background-color: rgba(255, 204, 0, 0.1);
    border-radius: 5px;
}

.improvement-row .detail-values {
    color: #4CAF50;
    font-weight: 800;
}

.consumption-row {
    margin-top: 10px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 5px;
    border-left: 3px solid #4CAF50;
    transition: all 0.3s ease;
}

.consumption-row:hover {
    background-color: rgba(76, 175, 80, 0.15);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
}

.consumption-row .detail-label {
    color: #2E7D32;
    font-weight: 700;
}

.consumption-row .detail-values {
    color: #2E7D32;
    font-weight: 700;
}

/* Animație pentru evidențierea economiei de combustibil */
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.3); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.highlight-pulse {
    animation: highlight-pulse 0.8s ease-in-out 3;
}

/* Adaptări pentru tablete pentru calculatorul de putere */
@media (max-width: 768px) {
    /* Face cifrele și statisticile puțin mai mici pe tablete */
    .detail-values {
        font-size: 15px;
    }
}

/* Adaptări pentru mobil pentru calculatorul de putere */
@media (max-width: 576px) {
    /* Face cifrele și statisticile mai mici pe varianta de telefon */
    .detail-values {
        font-size: 14px;
    }
    
    .improvement-row .detail-values,
    .consumption-row .detail-values {
        font-size: 13px;
    }
    
    /* Formatare specifică pentru valoarea de consum de combustibil pe mobil */
    #fuel-consumption-reduction {
        display: inline-block;
        word-break: keep-all;
    }
    
    /* Asigură că "Consum Redus" apare pe o singură linie */
    .consumption-row .detail-label {
        font-size: 13px;
        white-space: nowrap;
        padding-right: 5px;
        display: flex;
        align-items: center;
    }
    
    .consumption-text {
        display: inline-block;
        white-space: nowrap;
    }
    
    /* Ajustează padding-ul pe mobil pentru mai mult spațiu */
    .detail-row {
        padding: 10px 8px;
    }
    
    /* Asigură că iconițele nu ocupă prea mult spațiu */
    .detail-label i {
        margin-right: 3px;
        font-size: 12px;
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.result-card h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.result-values {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-value {
    font-weight: 600;
    color: var(--secondary-color);
}

.tuned .result-value {
    color: #2E8B57;
}

.results-improvement {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.results-improvement h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.improvement-values {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.improvement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.improvement-value {
    font-weight: 600;
    color: #ffffff;
}

.results-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-style: italic;
    margin-top: 15px;
}

.results-note i {
    color: var(--primary-color);
    margin-right: 5px;
}

.calculator-info {
    background-color: var(--white);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.calculator-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    z-index: 1;
}


.info-content {
    display: flex;
    flex-direction: column;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px; /* Spațiu între iconiță și text */
    margin-bottom: 10px;
    flex-direction: row;
}

.info-header i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0; /* Previne micșorarea iconiței */
    margin-right: 5px;
}

.info-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.info-body {
    padding: 30px;
}

.info-row {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.15), rgba(255, 149, 0, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-text h4 {
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: var(--secondary-color);
    font-weight: 600;
}

.info-text p {
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.5;
}

.info-content h4 {
    margin: 0px 0 10px;
}

.info-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.info-content ul li {
    list-style-type: disc;
    margin-bottom: 10px;
}

.info-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.info-footer .btn {
    padding: 14px 30px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #000000;
}

.info-content a {
    color: var(--primary-color);
    font-weight: 500;
}

.info-content a:hover {
    text-decoration: underline;
}

/* About Us Page Styles */

/* Page Title styling already exists, but adding specific about page modifications */
.page-title {
    position: relative;
    padding: 150px 0 80px;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center 99%;
    background-attachment: fixed;
}

@media (max-width: 1500px) {
    .page-title {
        background: url('../assets/page-title-bg.jpg') no-repeat center 40%/cover;
        /* sau center center dacă vrei să fie pe mijloc */
        background-attachment: scroll;
    }
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-title .container {
    position: relative;
    z-index: 2;
}

.page-title h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-title p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Story Section */
.story-section {
    padding: 90px 0;
    background-color: #fff;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.story-image {
    flex: 1;
    position: relative;
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.story-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.5;
}

.story-image:hover img {
    transform: scale(1.02);
}

.story-text {
    flex: 1;
}

.story-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #222;
    position: relative;
    padding-bottom: 15px;
}

.story-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.story-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* Mission Section */
.mission-section {
    padding: 90px 0;
    background-color: #f8f9fa;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission-card, .values-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover, .values-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.mission-icon, .values-icon {
    margin-bottom: 25px;
    text-align: center;
}

.mission-card h2, .values-card h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    text-align: center;
}

.mission-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.values-card ul {
    padding-left: 20px;
}

.values-card li {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
    position: relative;
    list-style-type: none;
}

.values-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: -20px;
}

.values-card li strong {
    color: #222;
    font-weight: 600;
}

/* Team Section */
.team-section {
    padding: 90px 0;
    background-color: #fff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-member {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.member-image {
    overflow: hidden;
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    height: 350px;
}

.member-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.member-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    display: block;
    margin: 0;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 25px;
}

.member-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #222;
}

.member-position {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.member-description {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* Facility Section */
.facility-section {
    padding: 90px 0;
    background-color: #f8f9fa;
}

.facility-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.facility-info {
    margin-top: 60px;
}

.info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-column h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    position: relative;
    padding-bottom: 12px;
}

.info-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.info-column p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.info-column ul {
    padding-left: 20px;
}

.info-column li {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 10px;
    position: relative;
    list-style-type: none;
}

.info-column li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: -20px;
}

/* Achievements Section */
.achievements-section {
    padding: 90px 0;
    background-color: #fff;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.achievement-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-icon img {
    width: 100%;
    height: auto;
}

.achievement-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.achievement-text {
    font-size: 18px;
    font-weight: 500;
    color: #444;
}

/* Testimonials Section */
.testimonials {
    padding: 90px 0;
    background-color: #f8f9fa;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial::before {
    content: '';  /* Am eliminat acolada Font Awesome */
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    position: relative;
    flex: 1;
    padding-top: 8px;
}

.quote-symbol {
    position: absolute;
    top: -18px;
    left: -5px;
    font-size: 50px;
    font-family: serif;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial:hover .quote-symbol {
    opacity: 1;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.testimonial-author {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 600;
}

.testimonial-author p {
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
}

/* Responsive styles for testimonials */
@media (max-width: 768px) {
    .testimonials-slider {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .testimonial {
        padding: 20px;
        min-height: 180px;
    }
    
    .testimonial-content p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .testimonial-author h4 {
        font-size: 16px;
    }
    
    .testimonial-author p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }
    
    .testimonial {
        padding: 15px;
        min-height: 160px;
    }
    
    .quote-symbol {
        font-size: 40px;
        top: -15px;
        left: -3px;
    }
    
    .testimonial-content p {
        font-size: 13px;
        padding-top: 10px;
    }
    
    .testimonial-author {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .testimonial-author h4 {
        font-size: 15px;
    }
    
    .testimonial-author p {
        font-size: 12px;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #f0f0f0);
    position: relative;
}

.contact-section .info-header {
    flex-direction: column;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.05), rgba(255, 149, 0, 0.05));
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Contact Info Card */
.contact-info {
    flex: 1;
    min-width: 320px;
}

.info-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    z-index: 1;
}

.info-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: 1;
}

.info-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.info-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 2;
}

.info-details {
    padding: 30px;
    flex-grow: 1;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
    align-items: flex-start;
    width: 100%;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.15), rgba(255, 149, 0, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    margin-top: 3px;
}

.info-icon i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.info-text h3,
.info-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--secondary-color);
    text-align: left; /* Default left alignment for desktop */
}

.info-text p {
    margin: 0 0 8px;
    color: var(--text-color);
    line-height: 1.5;
}

.info-text p:last-child {
    margin-bottom: 0;
}

.info-text a {
    color: var(--text-color);
    transition: all 0.3s ease;
    word-break: break-word;
    display: inline-block;
    max-width: 100%;
}

.info-text a:hover {
    color: var(--primary-color);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    color: #25D366 !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.whatsapp-btn i {
    margin-right: 8px;
}

.whatsapp-btn:hover {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .whatsapp-btn {
        justify-content: center;
        width: 100%;
    }
    
    .whatsapp-btn:hover {
        transform: translateY(-2px);
    }
    
    .info-title {
        text-align: center !important;
        display: block;
        width: 100%;
    }
}

.social-links {
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.social-links h3,
.follow-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: var(--secondary-color);
    transition: all 0.4s ease;
}

.social-icons a:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.2);
}
.contact-form-wrapper {
    flex: 1;
    min-width: 320px;
}

.contact-form {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    padding: 35px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(255, 204, 0, 0.15);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    z-index: 1;
}

/* Mobile responsive styles for contact section */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 15px;
        margin-top: 0;
    }
    
    .info-text {
        width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        text-align: center;
    }
    
    h3.info-title,
    .info-text h3,
    .follow-title,
    .social-links h3 {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 8px;
        width: 100%;
        display: block;
    }
    
    .info-text p {
        text-align: center;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .checkbox-container {
        display: flex;
        align-items: flex-start;
        line-height: 1.4;
        padding-left: 28px;
        width: 100%;
    }
    
    .checkbox-container a {
        display: inline;
        word-break: break-word;
    }
    
    .checkbox-container input {
        margin-top: 5px;
    }
    
    .info-details {
        padding: 25px 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .social-links {
        text-align: center;
    }
    
    .social-links h3,
    .follow-title {
        text-align: center !important;
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 50px 0;
    }
    
    .info-header {
        padding: 25px 20px;
    }
    
    .info-header h2 {
        font-size: 1.5rem;
    }
    
    .info-header p {
        font-size: 0.9rem;
    }
    
    .info-item {
        margin-bottom: 25px;
    }
    
    .info-icon {
        margin-bottom: 12px;
    }
    
    .info-text h3 {
        font-size: 1.1rem;
    }
    
    .info-text p {
        font-size: 0.95rem;
    }
    
    .checkbox-container {
        font-size: 0.85rem;
    }
    
    .contact-form .btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .whatsapp-btn {
        justify-content: center;
    }
}

.contact-form h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--secondary-color);
    text-align: center;
    position: relative;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group .required {
    color: #ff5252;
    margin-left: 3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox customizat */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    user-select: none;
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.5;
    word-wrap: break-word;
    flex-wrap: wrap;
    text-align: left;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid var(--medium-gray);
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 50%;
    top: 40%;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.checkbox-container a {
    color: var(--primary-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

#whatsapp-submit {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

#whatsapp-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

#whatsapp-submit::before {
    background: rgba(255, 255, 255, 0.15);
}

/* Map Section */
.map-section {
    padding: 0 0 0px;
    position: relative;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.03), rgba(255, 149, 0, 0.03));
    z-index: 1;
}

.map-container {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* Additional Info Section */
.additional-info {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f5f5, #e9e9e9);
    position: relative;
}

.additional-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.05), rgba(255, 149, 0, 0.05));
    z-index: 1;
}

.additional-info .container {
    position: relative;
    z-index: 2;
}

.directions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.directions-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.directions-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
}

.directions-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
    padding-left: 15px;
}

.directions-card ol {
    padding-left: 35px;
}

.directions-card ol li {
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
}

.directions-card ol li::marker {
    color: var(--primary-color);
    font-weight: 600;
}

.note-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
}

.note-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.note-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gradient);
}

.note-card p {
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

.note-card p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }
    
    .directions-content {
        grid-template-columns: 1fr;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero h1, .hero-title {
        font-size: 2.6rem;
    }
    
    .section-header h2,
    .calculator-text h2,
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-content {
        flex-direction: column;
    }
    
    .calculator-form {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
        white-space: normal; /* Permite împărțirea textului pe mai multe linii */
        line-height: 1.3;
    }

    .story-content, .info-columns {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        margin-bottom: 40px;
    }
    
    .facility-gallery {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item.large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .project-cards {
        grid-template-columns: 1fr;
    }

    .page-title h1 {
        font-size: 36px;
    }
    
    .page-title p {
        font-size: 16px;
    }
    
    .story-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .facility-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
    
    .team-grid, .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .project-cards {
        grid-template-columns: 1fr;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        z-index: 999;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        white-space: normal;
    }

    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .calculator-content {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .comparison-chart {
        height: 220px;
    }
    
    .calculator-image {
        display: block;
        max-width: 350px;
        margin: 30px auto 0;
    }
    
    .calculator-image img {
        object-position: 60% 40%;
    }
    
    .calculator-text {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-social h3 {
        text-align: center;
    }
    
    .service-item, .service-item.reverse {
        flex-direction: column;
    }
    
    .service-image {
        margin-bottom: 30px;
    }
    
    .contact-content, .story-content {
        flex-direction: column;
    }
    
    .story-image {
        margin: 0 auto 30px;
    }
    
    .facility-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 150px);
    }
}

@media (max-width: 600px) {
    .calculator-section .container {
        padding: 0 5px;
    }
    .calculator-wrapper,
    .calculator-content,
    .calculator-form,
    .calculator-results {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
    .calculator-header,
    .calculator-tabs,
    .calculator-form,
    .calculator-results,
    .calculator-info {
        align-items: center;
        text-align: center;
    }
    .form-row {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .form-group {
        width: 100%;
    }
    .btn-calculate {
        width: 100%;
    }
    .calculator-info {
        margin-top: 32px;
    }
    .form-group label {
        text-align: left !important;
        justify-content: flex-start !important;
        display: flex;
        align-items: center;
    }
    .tuning-options label {
        text-align: left !important;
        justify-content: flex-start !important;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.4;
        white-space: normal;
    }
    
    .hero {
        background-position: 68% 40%;
    }
    
    .mobile-break {
        display: inline;
    }
    
    .offer-content {
        padding: 20px;
    }
    
    .offer-container {
        width: 95%;
        max-width: 400px;
    }
    
    .offer-emoji {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .offer-text h3 {
        font-size: 18px;
    }

    .offer-text h2 {
        font-size: 20px;
    }
    
    .social-follow-item {
        padding: 12px 10px;
    }

    .social-follow-link {
        font-size: 14px;
    }
    
    .follow-instructions h4 {
        font-size: 16px;
    }
    
    .car-form h4 {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.85rem;
        padding: 0 15px;
    }

    .hero {
        padding: 150px 0 80px;
    }
    
    .section-header h2,
    .calculator-text h2,
    .cta-content h2,
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .page-title {
        padding: 120px 0 60px;
        background-position: center 150%;
    }

    .calculator-header h3 {
        font-size: 1.3rem;
    }
    
    .calculator-content {
        padding: 20px 8px;
    }
    
    .tuning-stage-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .calculator-results {
        min-width: 100px;
        padding: 20px 15px;
    }
    
    .info-row {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
    }
    
    .info-header {
        padding: 25px 20px;
    }
    
    .info-details {
        padding: 25px 20px;
    }

}

/* Comparison Page Styles */
/* Race Section */
.race-section, .fuel-section {
    padding: 80px 0;
    background-color: var(--light-gray);
    position: relative;
}

.race-section {
    background-image: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92));
    background-size: cover;
    background-position: center;
}

.race-container, .fuel-container {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    overflow: hidden;
}

.car-stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 20px;
}

.car-stats {
    flex: 1;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.car-stats:hover {
    transform: translateY(-5px);
}

.car-stats.stock {
    background-color: var(--light-gray);
    border-left: 4px solid #888;
}

.car-stats.tuned {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary-dark);
}

.car-stats h3 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.stat-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
}

.stat-label {
    font-weight: 500;
}

.stat-value {
    font-weight: 600;
}

.car-stats.tuned .stat-value {
    color: var(--accent-dark);
}

.race-track {
    position: relative;
    height: 200px;
    background-color: #333;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.traffic-light {
    display: flex;
    background-color: #222;
    border-radius: 5px;
    padding: 5px;
    z-index: 10;
}

.desktop-traffic-light {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
}

.mobile-traffic-light {
    display: none;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

.light {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin: 3px;
    background-color: #444;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.light.red.active {
    background-color: #ff3b30;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.7);
    opacity: 1;
}

.light.yellow.active {
    background-color: #ffcc00;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
    opacity: 1;
}

.light.green.active {
    background-color: #34c759;
    box-shadow: 0 0 15px rgba(52, 199, 89, 0.7);
    opacity: 1;
}

.track-lanes {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.lane {
    flex: 1;
    position: relative;
    border-top: 2px dashed rgba(255, 255, 255, 0.2);
    padding: 10px 0;
}

.lane:first-child {
    border-top: none;
}

.car {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.1s linear;
    z-index: 2;
}

.stock-car i {
    font-size: 24px;
    color: var(--white);
}

.tuned-car img {
    width: 40px;
    height: auto;
}

.speed-indicator {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car.racing .speed-indicator {
    opacity: 1;
}

.distance-markers {
    position: absolute;
    bottom: 5px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 80px 0 100px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.finish-line {
    position: absolute;
    right: 100px;
    top: 0;
    height: 100%;
    width: 10px;
    overflow: hidden;
    z-index: 1;
}

.checkered-pattern {
    height: 100%;
    width: 100%;
    background-image: linear-gradient(45deg, 
        black 25%, white 25%, white 50%, 
        black 50%, black 75%, white 75%, white);
    background-size: 6px 6px;
}

.race-controls, .fuel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.fuel-timers {
    display: flex;
    gap: 15px;
    align-items: center;
}

.race-timer, .fuel-timer, .fuel-countdown {
    padding: 10px 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.fuel-countdown {
    background-color: #f0f0f0;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.race-results, .fuel-results {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 10px;
    display: none;
}

.race-results h3, .fuel-results h3 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: var(--white);
    border-radius: 8px;
}

.result-item.improvement {
    background: #ffe066;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    margin-top: 10px;
    color: #222;
    font-size: 1.1rem;
    flex-wrap: wrap;
}

.result-item.improvement .result-label {
    font-weight: 500;
    color: #222;
    flex: 1 1 60%;
    text-align: left;
}

.result-item.improvement .result-value {
    font-weight: 700;
    color: #222;
    flex: 1 1 40%;
    text-align: right;
    word-break: keep-all;
}

.race-info, .fuel-info {
    margin-top: 30px;
}

.race-info .info-card, .fuel-info .info-card {

/* Terms and Conditions Page Styles */
.terms-section {
    padding: 80px 0;
    background-color: var(--white);
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

.terms-box {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.terms-box h2 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.terms-box h2:first-child {
    margin-top: 0;
}

.terms-box p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.terms-box ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.terms-box ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    list-style-type: none;
}

.terms-box ul li:before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.contact-list {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.contact-list li {
    margin-bottom: 10px;
    padding-left: 30px !important;
}

.contact-list li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.terms-updated {
    text-align: center;
    margin-top: 30px;
    color: var(--dark-gray);
    font-style: italic;
}

.link-highlight {
    color: var(--primary-dark);
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.link-highlight:hover {
    color: var(--accent-color);
}
    padding: 25px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: var(--primary-color);
}

.info-card p {
    margin-bottom: 15px;
}

.info-card ul {
    list-style-type: none;
    padding-left: 15px;
    margin-top: 10px;
}

.info-card ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.info-card ul li::before {
    content: "\f00c";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Fuel Economy Section */
.fuel-section {
    background-image: linear-gradient(rgba(238, 238, 238, 0.92), rgba(207, 207, 207, 0.92));
    background-size: cover;
    background-position: center;
}

.highway-scene {
    position: relative;
    height: 250px;
    background-color: #87CEEB;
    border-radius: 10px;
    overflow: hidden;
}

.road {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background-color: #444;
    z-index: 1; /* Adăugat z-index pentru a poziționa drumul sub alte elemente */
}

.lane-marking {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(
        to right,
        white,
        white 30px,
        transparent 30px,
        transparent 60px
    );
    z-index: 2; /* Adăugat z-index pentru a poziționarea marcajul peste drum */
}

.car-container {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 0.1s linear;
    z-index: 10; /* Adăugat z-index pentru a menține mașinile deasupra munților */
}

.stock-container {
    left: 30%;
}

.tuned-container {
    left: 60%;
}

.stock-highway-car {
    color: var(--white);
    font-size: 32px;
}

.tuned-highway-car {
    width: 50px;
    height: auto;
}

.fuel-tank {
    width: 40px;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}

.fuel-level {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #34c759;
    transition: width 0.1s linear;
}

.car-label {
    color: var(--white);
    font-size: 12px;
    margin-top: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 4px;
}

.highway-background {
    position: absolute;
    bottom: 80px;
    width: 100%;
    height: 60px;
    z-index: 5; /* Adăugat z-index mai mic decât mașinile */
}

.mountain {
    position: absolute;
    bottom: 0;
    width: 100px;
    height: 50px;
    background-color: #2E8B57;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.mountain:nth-child(1) {
    left: 10%;
    height: 60px;
}

.mountain:nth-child(2) {
    left: 40%;
    height: 40px;
}

.mountain:nth-child(3) {
    right: 15%;
    height: 50px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fuel-result-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.fuel-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.result-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: 50%;
}

.result-icon i {
    font-size: 24px;
    color: var(--accent-dark);
}

.fuel-result-card h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.fuel-result-card .result-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.fuel-result-card .result-description {
    font-size: 14px;
    color: var(--dark-gray);
}

/* Responsive Styles for Comparison Page */
@media (max-width: 992px) {
    .car-stats-container {
        flex-direction: column;
    }
    
    .race-track {
        height: 300px;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .finish-line {
        right: 50px;
    }
}

@media (max-width: 768px) {
    .info-card h3 {
        display: block;
    }

    .race-container, .fuel-container {
        padding: 15px;
    }
    
    /* Reduce height for race track on mobile */
    .race-track {
        height: 160px;
    }
    
    /* Move traffic light above the race track */
    .desktop-traffic-light {
        display: none;
    }
    
    .mobile-traffic-light {
        display: flex;
        padding: 5px 0;
        border-radius: 5px 5px 0 0;
    }
    
    /* Allow cars to use full width */
    .car {
        left: 10px; /* Start closer to left edge */
    }
    
    .race-controls, .fuel-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .race-timer, .fuel-timer {
        width: 100%;
    }
    
    .race-controls .btn, .fuel-controls .btn {
        width: 100%;
    }
    
    /* Adjust distance markers to match new car positioning */
    .distance-markers {
        padding: 0 50px 0 20px;
    }
}

@media (max-width: 576px) {
    .result-item.improvement {
        font-size: 1rem;
        padding: 12px 8px;
    }
    .result-item.improvement .result-label,
    .result-item.improvement .result-value {
        font-size: 0.9rem;
    }
    
    .improvement-badge {
        width: 80px;
        height: 80px;
    }
    
    .improvement-badge .improvement-value {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .improvement-badge .improvement-torque {
        font-size: 0.9rem;
    }
    
    /* Center icons in the Despre Tuning section */
    .info-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-icon {
        margin-right: 0px;
        margin-bottom: 15px;
    }
    
    .info-text {
        text-align: center;
        width: 100%;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-item {
        padding: 10px;
    }
    
    .car-stats h3 {
        font-size: 16px;
    }
    
    .stat-item {
        font-size: 14px;
    }
    
    .race-section, .fuel-section {
        padding: 50px 0;
    }
    
    /* Custom styling for the comparison page title on mobile */
    @media (max-width: 768px) {
        .comparison-title {
            display: flex;
            flex-direction: column;
        }
        
        .comparison-title:before {
            content: "Comparație";
            display: block;
        }
        
        .comparison-title:after {
            content: "Stock vs Stage 1";
            display: block;
        }
        
        .comparison-title span {
            display: none;
        }
    }
}