/* ============================================
   RESET & BASE STYLES - MODERN LIGHT THEME
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f0f2f5;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent-primary: #2563eb;
    --accent-secondary: #dc2626;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

/* ============================================
   HEADER
   ============================================ */
.header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.5s ease-out;
}

.header--scrolled {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* index.html: full-width header so the logo can sit top-left */
.header-container {
    max-width: 100%;
    padding: 0 20px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-mark {
    display: block;
    height: 50px;
    width: auto;
    max-width: 250px;
    transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .logo-mark {
        height: 32px;
        max-width: 150px;
    }
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

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

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.75rem 1.5rem;
    display: block;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--accent-primary);
    transition: transform 0.2s ease;
}

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

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 28px;
    height: 18px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.18s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    transform: translateY(calc(-50% - 7px));
}

.mobile-menu-toggle span:nth-child(2) {
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    transform: translateY(calc(-50% + 7px));
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-50%) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%);
    padding: 5rem 0 3.5rem;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(700px 380px at 15% 20%, rgba(37, 99, 235, 0.10) 0%, rgba(37, 99, 235, 0) 60%),
        radial-gradient(700px 380px at 85% 30%, rgba(220, 38, 38, 0.08) 0%, rgba(220, 38, 38, 0) 60%),
        radial-gradient(900px 500px at 50% 100%, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0) 55%);
    opacity: 1;
    pointer-events: none;
}

@keyframes movePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-accent-shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    border-radius: 50%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    transform: rotate(45deg);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

/* index.html landing hero */
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
}

.hero-copy {
    max-width: 680px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
}

.hero-card-title {
    font-weight: 750;
    letter-spacing: -0.4px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-steps {
    margin: 0 0 1.25rem 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-steps li {
    margin: 0.4rem 0;
}

.hero-card-note {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    letter-spacing: 0.2px;
}

.hero-title {
    font-size: 3.1rem;
    font-weight: 850;
    margin-bottom: 1.25rem;
    line-height: 1.08;
    letter-spacing: -1.6px;
    color: var(--text-primary);
}

.title-line {
    display: inline-block;
}

.title-accent {
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-checks {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
}

.hero-checks li {
    position: relative;
    padding-left: 1.6rem;
}

.hero-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.25);
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.45);
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid;
    font-size: 1rem;
    text-align: center;
    background: transparent;
    border-radius: 8px;
}

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

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn svg {
    transition: transform 0.2s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTIONS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.service-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: var(--border-light);
    opacity: 0.5;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.service-cta:hover {
    gap: 0.75rem;
    color: #1d4ed8;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #1d4ed8 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 6rem 0;
    background: var(--bg-primary);
}

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

.contact-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.contact-card a:hover {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* ============================================
   QUOTE WIZARD
   ============================================ */
.quote-wizard {
    padding: 4rem 0 6rem;
    background: var(--bg-secondary);
    min-height: 80vh;
}

.wizard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.wizard-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.wizard-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.acceptance-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.12) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    border-radius: 12px;
    font-size: 0.95rem;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.acceptance-date-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.35);
}

.badge-label {
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.badge-date {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.progress-steps {
    --step-gap: 1rem;
    display: flex;
    justify-content: center;
    /* Important: labels may wrap to 2 lines; keep the circles + connector aligned */
    align-items: flex-start;
    gap: var(--step-gap);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 20px;
    /* Draw the connector from the right edge of the circle to the next circle */
    left: calc(50% + 20px);
    width: calc(100% + var(--step-gap) - 40px);
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step-item:last-child::after {
    display: none;
}

.step-item.completed::after {
    background: var(--accent-primary);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.step-item.completed .step-number {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.step-item.active .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

.wizard-form {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.step-content {
    margin-bottom: 2rem;
}

.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-option {
    cursor: pointer;
}

.service-option input[type="radio"] {
    display: none;
}

.option-content {
    height: 180px;
    padding: 2rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-option input[type="radio"]:checked + .option-content {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.service-option:hover .option-content {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.option-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-option input[type="radio"]:checked + .option-content .option-icon-wrapper {
    background: rgba(37, 99, 235, 0.15);
    transform: scale(1.1);
}

.service-option:hover .option-content .option-icon-wrapper {
    background: rgba(37, 99, 235, 0.12);
}

.option-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.service-option input[type="radio"]:checked + .option-content .option-icon {
    transform: scale(1.1);
}

.option-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.service-option input[type="radio"]:checked + .option-content .option-label {
    color: var(--accent-primary);
}

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

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.label-with-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.label-with-info > span {
    min-width: 0;
}

.kn-info {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-primary);
    border-radius: 999px;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    font-weight: 850;
    font-size: 0.8rem;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.kn-info--icon {
    min-width: 22px;
    height: 22px;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 800;
}

.kn-info:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.kn-tooltip {
    position: fixed;
    z-index: 10050;
    max-width: min(380px, calc(100vw - 24px));
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.55;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: normal;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    border-radius: 8px;
}

/* Keep all standard fields the exact same height (prevents emoji/line-height differences) */
.form-group input,
.form-group select {
    height: 54px;
    line-height: 1.5;
}

.form-group textarea {
    height: auto;
    line-height: 1.5;
}

/* Telefonszám kombinált mező (ország megjelenítés + telefonszám) */
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    /* Lock height to match regular inputs; prevents flag emoji from increasing line box height */
    height: 54px;
}

.phone-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.phone-country-display {
    flex-shrink: 0;
    padding: 0 0.875rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: 1px solid var(--border-color);
    margin-right: 0;
    min-width: 90px;
    text-align: center;
    border-radius: 8px 0 0 8px;
    white-space: nowrap;
    outline: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    line-height: 1;
}

.phone-number-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    min-width: 0;
    border-radius: 0;
    height: 100%;
}

.phone-number-input::placeholder {
    color: var(--text-muted);
}

.phone-number-input:focus {
    outline: none;
}

/* Make sure global .form-group input styles don't add an inner border/box-shadow to the phone input */
.form-group .phone-input-wrapper .phone-number-input {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.form-group .phone-input-wrapper .phone-number-input:focus {
    border-color: transparent !important;
    box-shadow: none !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Custom Select Styling - Cross-browser compatible */
.form-group {
    position: relative;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    min-height: 48px;
}

.form-group select::-ms-expand {
    display: none;
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form-group select:hover {
    border-color: var(--accent-primary);
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-group select option:checked {
    background: var(--accent-primary);
    color: white;
}

/* Firefox specific */
@-moz-document url-prefix() {
    .form-group select {
        text-indent: 0;
    }
    
    .form-group select option {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }
}

/* IE11 specific */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .form-group select {
        padding-right: 2.5rem;
    }
    
    .form-group select::-ms-expand {
        display: none;
    }
}

/* Safari specific */
@supports (-webkit-appearance: none) {
    .form-group select {
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 12px;
    }
}

.summary-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
}

.summary-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.price-label {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.summary-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.6;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    flex-wrap: wrap; /* allow feedback to be on its own row */
}

.wizard-navigation button {
    position: relative;
    z-index: 11;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
    order: 1; /* buttons under the feedback row */
}

.wizard-navigation button svg {
    width: 20px;
    height: 20px;
}

/* Quote submit feedback (inline, non-blocking) */
.kn-submit-feedback {
    width: 100%;
    margin: 0 0 1rem 0; /* shown above the buttons */
    padding: 0;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    display: none;
    flex: 0 0 100%;
    order: 0; /* first row */
}
.kn-submit-feedback--info {
    display: block;
    padding: 0.85rem 1rem;
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}
.kn-submit-feedback--success {
    display: block;
    padding: 0.85rem 1rem;
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.kn-submit-feedback--error {
    display: block;
    padding: 0.85rem 1rem;
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Contact Form */
.contact-form {
    max-width: 900px;
    margin: 0 auto;
}

.kn-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2rem;
    align-items: start;
}

.kn-contact-side {
    position: sticky;
    top: 96px;
}

.kn-contact-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
}

.kn-contact-card-title {
    font-weight: 850;
    letter-spacing: -0.4px;
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
    color: var(--text-primary);
}

.kn-contact-list {
    display: grid;
    gap: 0.95rem;
}

.kn-contact-item {
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.7);
}

.kn-contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.kn-contact-value {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid transparent;
}

a.kn-contact-value:hover {
    color: var(--accent-primary);
    border-bottom-color: rgba(37, 99, 235, 0.4);
}

.kn-contact-note {
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.kn-map-card {
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 1.25rem;
}

.kn-map-embed {
    margin-top: 0.75rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.7);
    aspect-ratio: 16 / 10;
}

.kn-map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.kn-map-footer {
    margin-top: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.kn-map-address {
    color: var(--text-secondary);
    font-weight: 650;
    font-size: 0.95rem;
}

.kn-map-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 800;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
    padding-bottom: 1px;
}

.kn-map-link:hover {
    border-bottom-color: rgba(37, 99, 235, 0.55);
}

.kn-form-surface {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.kn-form-subtitle {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 0.25rem;
}

.kn-form-status {
    margin-top: 1rem;
    display: none;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.75);
    color: var(--text-primary);
    font-weight: 650;
}

.kn-form-status.is-success {
    display: block;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.10);
}

.kn-form-status.is-error {
    display: block;
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(220, 38, 38, 0.08);
}

.kn-optional {
    color: var(--text-muted);
    font-weight: 650;
    font-size: 0.85rem;
}

.kn-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.7);
}

.kn-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: var(--accent-primary);
}

.kn-checkbox a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
}

.kn-checkbox a:hover {
    border-bottom-color: rgba(37, 99, 235, 0.55);
}

.kn-field-error {
    margin-top: 0.45rem;
    font-size: 0.875rem;
    color: #b91c1c;
    font-weight: 650;
}

.kn-input-error {
    border-color: rgba(220, 38, 38, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.btn[disabled] {
    opacity: 0.78;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.service-selection {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .kn-contact-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .kn-contact-side {
        position: static;
    }

    .kn-form-surface {
        padding: 1.75rem;
    }
}

/* Room Groups */
.room-group {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* kW Suggestion */
.kw-suggestion {
    animation: fadeIn 0.3s ease;
    width: 100%;
    grid-column: 1 / -1;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

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

/* Custom Price Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"] {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.85) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-overlay.active .modal-dialog,
.modal-overlay[style*="display: flex"] .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-header-custom {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header-custom h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-body-custom {
    padding: 2rem;
    text-align: center;
}

.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.modal-icon-wrapper svg {
    width: 50px;
    height: 50px;
}

.modal-message {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-submessage {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.modal-footer-custom {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background:
        radial-gradient(900px 380px at 18% 30%, rgba(37, 99, 235, 0.08), transparent 60%),
        radial-gradient(700px 320px at 82% 20%, rgba(220, 38, 38, 0.06), transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #f3f4f6 100%);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-main {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.footer-section {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1.25rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.footer-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
    border-color: rgba(203, 213, 225, 0.9);
}

.footer-section:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(203, 213, 225, 0.9) 10%, rgba(203, 213, 225, 0.9) 90%, transparent 100%);
}

.footer-brand {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo-img {
    height: 58px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1.25rem 0;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-heading::after {
    content: '';
    display: inline-block;
    height: 2px;
    width: 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-primary), rgba(37, 99, 235, 0.15));
    opacity: 0.9;
}

.footer-links-section {
    min-width: 0;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 2rem;
    align-content: start;
}

.footer-nav li {
    margin: 0;
    padding: 0;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--accent-primary);
    transform: translateX(2px);
}

.footer-contact {
    min-width: 0;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.footer-icon {
    width: 16px;
    height: 16px;
    color: rgba(37, 99, 235, 0.75);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-list a,
.footer-contact-list span {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word;
}

.footer-contact-list a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.footer-bottom {
    padding: 1.75rem 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 968px) {
    .footer-main {
        padding: 3rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-section:not(:last-child)::after {
        display: none;
    }
    
    .footer-section:nth-child(2)::after {
        display: block;
        right: -1.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .footer-brand::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .footer {
        margin-top: 3rem;
    }
    
    .footer-main {
        padding: 2.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-section:not(:last-child)::after {
        display: none;
    }
    
    .footer-section:not(:last-child) {
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .footer-brand {
        grid-column: 1;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
}

/* ============================================
   TUDNIVALÓK / KNOWLEDGE BASE (public)
   ============================================ */

.education {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.education-card {
    display: block;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: inherit;
}

.education-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow-md);
}

.education-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.education-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.9rem;
}

.education-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.knowledge-hero {
    padding: 5rem 0 2.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 65%);
}

.knowledge-hero-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.knowledge-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
}

.knowledge-title {
    font-size: 2.2rem;
    font-weight: 850;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.knowledge-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 72ch;
    margin-bottom: 1.5rem;
}

.knowledge-toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.knowledge-toc-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 650;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.knowledge-toc-link:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.knowledge-content {
    padding: 1.5rem 0 5rem;
}

.knowledge-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.knowledge-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.knowledge-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 1.1rem 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: baseline;
}

.knowledge-summary::-webkit-details-marker {
    display: none;
}

.knowledge-index {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 850;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.knowledge-heading {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0;
    color: var(--text-primary);
}

.knowledge-item[open] .knowledge-summary {
    background: rgba(248, 250, 252, 0.65);
    border-bottom: 1px solid var(--border-color);
}

.knowledge-body {
    padding: 0 1.25rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: max-height 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
                padding 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.knowledge-item[open] .knowledge-body {
    max-height: 5000px;
    opacity: 1;
    transform: translateY(0) scale(1);
    padding: 0.25rem 1.25rem 1.25rem;
}

.knowledge-body p {
    margin: 0.9rem 0;
}

.knowledge-body h3 {
    margin: 1.25rem 0 0.5rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.knowledge-list {
    margin: 0.75rem 0 0.75rem 1.1rem;
}

.knowledge-note {
    padding: 0.85rem 1rem;
    border-left: 4px solid rgba(37, 99, 235, 0.55);
    background: rgba(37, 99, 235, 0.06);
    border-radius: 10px;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.faq-item {
    background: rgba(248, 250, 252, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 0.25rem 0.25rem;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 0.95rem 1rem;
    font-weight: 850;
    color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-q::after {
    content: '';
    flex: 0 0 auto;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    background: rgba(241, 245, 249, 0.85);
    border-color: rgba(203, 213, 225, 0.95);
}

.faq-item[open] {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.faq-item[open] .faq-q::after {
    transform: rotate(-135deg);
    border-color: var(--accent-primary);
}

.faq-item summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
    border-radius: 12px;
}

.faq-a {
    padding: 0 1rem 0;
    color: var(--text-secondary);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: max-height 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
                padding 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-a:empty {
    display: none;
}

.faq-item[open] .faq-a {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0) scale(1);
    padding: 0 1rem 1rem;
}

/* Hash target / sticky header offset helper */
.knowledge-item {
    scroll-margin-top: 100px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .logo-mark {
        height: 28px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        padding: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .hero-title {
        font-size: 2.35rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .hero-stats {
        gap: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .knowledge-toc {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .wizard-form {
        padding: 1.5rem;
    }

    .progress-steps {
        --step-gap: 0.5rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }

    .service-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .option-content {
        height: 160px;
        padding: 1.5rem 1rem;
    }
    
    .option-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .option-icon {
        width: 35px;
        height: 35px;
    }
    
    .option-label {
        font-size: 0.9rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 768px) {
    .wizard-title {
        font-size: 2rem;
    }

    .wizard-subtitle {
        font-size: 1rem;
    }

    .progress-steps {
        --step-gap: 0.5rem;
    }

    .step-item {
        max-width: 100px;
    }

    .step-item::after {
        display: none;
    }

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

    .wizard-navigation .btn {
        width: 100%;
    }

    .modal-dialog {
        width: 95%;
        max-width: 95%;
        margin: 1rem;
    }

    .modal-header-custom,
    .modal-body-custom,
    .modal-footer-custom {
        padding: 1.25rem 1.5rem;
    }

    .modal-footer-custom {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Success Modal Styles */
.success-modal {
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-modal .modal-content {
    padding: 0;
    text-align: center;
    position: relative;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

.success-icon svg {
    width: 50px;
    height: 50px;
    stroke-width: 3;
}

.success-modal .modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.success-modal .modal-message {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding: 0 1rem;
}

.success-modal .modal-message strong {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.success-modal .modal-submessage {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.success-modal .modal-actions {
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.success-modal .modal-actions .btn {
    min-width: 160px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.success-modal .modal-content {
    padding: 3rem 2.5rem;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes iconBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

    .modal-footer-custom .btn {
        width: 100%;
    }
}

/* Debug Panel Styles */
.debug-panel-container {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: none; /* Fejlesztői rész elrejtve - kód megmarad */
}

.debug-panel {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid #475569;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.debug-panel::before {
    content: '🔧 FEJLESZTŐI RÉSZ';
    position: absolute;
    top: -12px;
    left: 20px;
    background: #f59e0b;
    color: #1e293b;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.debug-content-scrollable {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    padding-right: 0.5rem;
}

.debug-content-scrollable::-webkit-scrollbar {
    width: 8px;
}

.debug-content-scrollable::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.debug-content-scrollable::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.debug-content-scrollable::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

.debug-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f59e0b;
    flex-shrink: 0;
}

.debug-placeholder {
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed #475569;
}

.debug-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.debug-info-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #475569;
    backdrop-filter: blur(10px);
}

.debug-info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #475569;
}

.debug-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.debug-info-row:last-child {
    border-bottom: none;
}

.debug-info-row.warning {
    background: rgba(245, 158, 11, 0.2);
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    border-left: 3px solid #f59e0b;
}

.debug-info-row.warning .debug-label,
.debug-info-row.warning .debug-value {
    color: #fbbf24;
}

.debug-label {
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.debug-value {
    font-weight: 600;
    color: #ffffff;
    text-align: right;
}

.debug-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 2px solid #3b82f6;
}

.debug-total-row .debug-label {
    font-size: 1.125rem;
    color: #ffffff;
}

.debug-total-row .debug-value.total-price {
    font-size: 1.5rem;
    color: #60a5fa;
}

.debug-acs-section {
    margin-top: 2rem;
}

.debug-acs-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.debug-ac-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #475569;
    backdrop-filter: blur(10px);
}

.debug-ac-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-primary);
}

.debug-ac-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.debug-calculation {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    border-left: 4px solid #3b82f6;
}

.debug-calc-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.debug-calc-step:last-of-type {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.debug-calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    border-top: 2px solid var(--accent-primary);
}

.calc-label {
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.9rem;
    flex: 1;
}

.calc-value {
    font-weight: 600;
    color: #ffffff;
    text-align: right;
    min-width: 100px;
}

.calc-formula {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
    margin-left: 1rem;
}

.debug-total-section {
    margin-top: 2rem;
}

.debug-total-card {
    background: rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    border: 2px solid #3b82f6;
    backdrop-filter: blur(10px);
}

.debug-total-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 1rem;
}

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

    .debug-ac-info {
        grid-template-columns: 1fr;
    }

    .debug-calc-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .calc-value {
        text-align: left;
        width: 100%;
    }

    .calc-formula {
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* ============================================
   COOKIE CONSENT (public)
   ============================================ */

body.kn-cc-lock {
    overflow: hidden;
}

.kn-cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 1rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.kn-cc-banner.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.kn-cc-banner-card {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.kn-cc-banner-title {
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 0.25rem;
}

.kn-cc-banner-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.kn-cc-banner-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.kn-cc-btn {
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(226, 232, 240, 1);
    background: #ffffff;
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.kn-cc-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.kn-cc-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.kn-cc-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #1d4ed8 100%);
    color: #fff;
    border-color: rgba(37, 99, 235, 0.6);
}

.kn-cc-btn-secondary {
    background: rgba(248, 250, 252, 1);
}

.kn-cc-btn-ghost {
    background: transparent;
}

.kn-cc-fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.kn-cc-fab:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
}

.kn-cc-fab-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--accent-primary);
}

.kn-cc-fab-text {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.kn-cc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.kn-cc-modal.show {
    display: block;
}

.kn-cc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.kn-cc-modal-card {
    position: relative;
    width: min(920px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    margin: 12px auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(8px);
    animation: knCcPop 0.18s ease forwards;
}

@keyframes knCcPop {
    from { transform: translateY(10px) scale(0.99); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.kn-cc-modal-header {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.kn-cc-modal-title {
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -0.4px;
}

.kn-cc-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 1);
    background: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.kn-cc-modal-body {
    padding: 1rem 1.1rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.kn-cc-cat {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 0.9rem 0.95rem;
    background: rgba(248, 250, 252, 0.6);
}

.kn-cc-cat-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
}

.kn-cc-cat-title {
    font-weight: 900;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kn-cc-cat-desc {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.5;
}

.kn-cc-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1e40af;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.18);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.kn-cc-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kn-cc-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.kn-cc-slider {
    width: 46px;
    height: 28px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.25);
    position: relative;
    transition: background 0.15s ease;
    border: 1px solid rgba(226, 232, 240, 1);
}

.kn-cc-slider::after {
    content: '';
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
    transition: left 0.15s ease;
}

.kn-cc-switch input:checked + .kn-cc-slider {
    background: rgba(37, 99, 235, 0.55);
}

.kn-cc-switch input:checked + .kn-cc-slider::after {
    left: 21px;
}

.kn-cc-switch input:disabled + .kn-cc-slider {
    opacity: 0.65;
    cursor: not-allowed;
}

.kn-cc-details {
    margin-top: 0.7rem;
}

.kn-cc-details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--accent-primary);
    user-select: none;
    list-style: none;
}

.kn-cc-details summary::-webkit-details-marker {
    display: none;
}

.kn-cc-details summary::after {
    content: '▾';
    display: inline-block;
    margin-left: 0.4rem;
    transition: transform 0.15s ease;
}

.kn-cc-details[open] summary::after {
    transform: rotate(180deg);
}

.kn-cc-table-wrap {
    margin-top: 0.75rem;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #fff;
}

.kn-cc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.kn-cc-table th,
.kn-cc-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    font-size: 0.9rem;
    text-align: left;
    vertical-align: top;
}

.kn-cc-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: rgba(248, 250, 252, 1);
}

.kn-cc-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 12px;
}

.kn-cc-modal-footer {
    padding: 1rem 1.1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    background: rgba(248, 250, 252, 0.75);
}

.kn-cc-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10001;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    font-weight: 700;
}

.kn-cc-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .kn-cc-banner-card {
        grid-template-columns: 1fr;
    }
    .kn-cc-banner-actions {
        justify-content: stretch;
    }
    .kn-cc-btn {
        width: 100%;
        justify-content: center;
    }
    .kn-cc-fab .kn-cc-fab-text {
        display: none;
    }
}