/* Explain: Component styles for site elements, including rich text, animations, and custom UI elements. - */
.site-header {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--accent-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame-large {
    height: min(74vh, 720px);
    min-height: 500px;
    border-radius: 2rem;
}

.arch-frame-medium {
    height: 620px;
    max-width: 450px;
    border-radius: 2rem;
}

.quiet-detail,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: var(--surface-color);
    padding: 1.5rem;
}

.quiet-detail span {
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.quiet-detail p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.class-card {
    min-height: 360px;
    border-radius: 1.6rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.class-card:hover {
    border-color: rgba(205, 155, 51, 0.3);
    box-shadow: 0 26px 80px rgba(10, 25, 47, 0.08);
    transform: translateY(-6px);
}

.booking-form,
.booking-overlay-panel {
    border-radius: 1.6rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: #10B981;
}

.form-status.error {
    color: #EF4444;
}

.mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(10, 25, 47, 0.7);
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.booking-overlay.is-open {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion interaction improvements */
details.collapse {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
details.collapse[open] {
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
    border-color: var(--accent-color);
}
details.collapse[open] .collapse-title .rounded-full {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.booking-overlay-panel {
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(10, 25, 47, 0.3);
    width: 100%;
}

.swiper-pagination-bullet {
    background: var(--text-muted);
}
.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}

/* Job Swiper adjustments to prevent shadow clipping */
.job-swiper {
    padding-top: 1rem;
    padding-bottom: 2rem;
    margin-top: -1rem;
    margin-bottom: -1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.fortelix-marquee {
    overflow: hidden;
    width: 100%;
}

.fortelix-marquee-track {
    display: flex;
    width: max-content;
    gap: 1rem;
    animation: fortelixMarquee 34s linear infinite;
    will-change: transform;
}

.fortelix-marquee-track-reverse {
    animation-name: fortelixMarqueeReverse;
}

.fortelix-marquee:hover .fortelix-marquee-track {
    animation-play-state: paused;
}

.fortelix-marquee-pill {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-color);
    padding: 0.8rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-soft);
}

@keyframes fortelixMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes fortelixMarqueeReverse {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

/* Rich Text Content Formatting */
.job-content {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}
.job-content h1, .job-content h2, .job-content h3, .job-content h4 {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}
.job-content h2 { font-size: 1.875rem; }
.job-content h3 { font-size: 1.5rem; }
.job-content h4 { font-size: 1.25rem; }
.job-content p {
    margin-bottom: 1.5rem;
}
.job-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}
.job-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}
.job-content li {
    margin-bottom: 0.75rem;
}
.job-content li > p {
    margin-bottom: 0.5rem;
}
.job-content strong, .job-content b {
    color: var(--text-color);
    font-weight: 700;
}
.job-content a {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
}
.job-content a:hover {
    text-decoration: underline;
}

/* MiniCRM felülírások a formok helyes Tailwind megjelenéséhez */
form.TurnKeyCRM * {
    box-sizing: border-box;
}
form.TurnKeyCRM label {
    float: none !important;
    width: auto !important;
    display: inline-block !important;
}
form.TurnKeyCRM .InputBlock {
    margin: 0 !important;
    clear: none !important;
    padding: 0 !important;
}
form.TurnKeyCRM .SetLabel {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
}
form.TurnKeyCRM .SetLabel input[type="checkbox"] {
    float: none !important;
    margin-top: 0.25rem !important;
}
form.TurnKeyCRM .CheckBoxLabel {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    display: block !important;
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large,
    .arch-frame-medium {
        height: 380px;
        min-height: 0;
        width: 100%;
    }

    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        max-width: 100%;
    }
}