@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary: #1e293b;
    --accent: #1d4ed8; /* Az új, mélyebb kék a sárga helyett */
    --text: #334155;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #f8fafc;
}

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

/* Header & Logo */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.tel-link {
    background: var(--accent);
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

/* Hero */
.hero {
    padding: 100px 0;
    background: linear-gradient(rgba(30, 41, 59, 0.75), rgba(30, 41, 59, 0.75)), url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?q=80&w=1920') center/cover;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero-lead {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Intro Section */
.intro-section {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

.intro-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.intro-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    background: #f0f9ff;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    flex: 1;
    border: 1px solid #e0f2fe;
}

.stat-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

/* Cards & Gombok */
.btn-primary,
.btn-detail {
    background: var(--accent);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    text-align: center;
}

.btn-primary {
    padding: 16px 32px;
    font-size: 1.1rem;
    width: 100%;
}

.hero-btn {
    width: auto;
}

.btn-detail {
    padding: 12px;
    width: 100%;
    margin-top: 15px;
}

.btn-primary:hover,
.btn-detail:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3); /* Árnyék kékre frissítve */
}

section {
    padding: 80px 0;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 700;
}

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

.bus-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.bus-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.bus-card-content {
    padding: 25px;
    flex-grow: 1;
}

.capacity {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: inline-block;
}

/* Form */
.form-container {
    background: white;
    padding: 50px;
    border-radius: 16px;
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: #fafafa;
}

#recommendation-badge {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e40af;
    font-weight: 600;
    border-left: 4px solid #3b82f6;
    display: none;
}

.extra-box {
    display: none;
    background: #eff6ff; /* Világoskék háttér a sárga helyett */
    border: 1px solid #dbeafe; /* Kékebb keret */
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 850px;
    position: relative;
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.5;
}

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

.modal-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    margin-bottom: 25px;
    color: white;
    font-size: 1.4rem;
}

.footer-col p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.4;
}

.footer-col i {
    color: var(--accent);
    width: 20px;
    margin-right: 10px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

@media (max-width: 768px) {

    .form-row,
    .intro-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

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

    .intro-grid {
        text-align: center;
        gap: 30px;
    }

    .intro-content h2 {
        text-align: center;
    }

    .intro-stats {
        justify-content: center;
    }

    .footer-content {
        text-align: center;
    }
}