/*
Theme Name: CalFec
Theme URI: https://calfec.ai/
Author: CalFec Team
Description: CalFec építőipari kalkulátorok
Version: 1.0.0
Text Domain: calfec
*/

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


.wp-caption {
    font-size: smaller;
}

.wp-caption-text {
    font-size: smaller;
}

.gallery-caption {
    font-size: smaller;
}

.alignright,
.align-right {
    text-align: right;
}

.alignleft,
.align-left {
    text-align: left;
}

.aligncenter,
.align-center {
    text-align: center;
}

/* === RESET === */

*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

img {
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 0;
    vertical-align: top;
    max-width: 100%;
    height: auto;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

code,
pre,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

li,
header li,
#main-menu li {
    list-style-type: none;
}

/* === STYLE === */


/* CALFEC DESIGN SYSTEM */

:root {
    /* CALFEC BRAND SZÍNEK */
    --color-navy: #1e2732;
    --color-coral: #e07856;
    --color-gold: #d4af37;
    --color-light-blue: #5b8db5;
    --color-dark-navy: #1f4e78;
    
    /* NEUTRAL SZÍNEK */
    --color-white: #ffffff;
    --color-light-bg: #f8f9fa;
    --color-gray-100: #f1f3f5;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-400: #ced4da;
    --color-gray-500: #adb5bd;
    --color-gray-600: #6c757d;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    
    /* TYPOGRAPHY */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    
    --font-weight-normal: 400;
    --font-weight-medium: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.2;
    --line-height-base: 1.5;
    --line-height-relaxed: 1.75;
    
    /* SPACING */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 3rem;      /* 48px */
    --spacing-2xl: 4rem;     /* 64px */
    --spacing-3xl: 6rem;     /* 96px */
    
    /* BORDER RADIUS */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* SHADOWS */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* TRANSITIONS */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* CONTAINER */
    --container-max-width: 1200px;
    --container-padding: var(--spacing-md);
}

/* RESET & BASE STYLES */


html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    color: var(--color-gray-900);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-tight);
    color: var(--color-dark-navy);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* LAYOUT COMPONENTS */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* HEADER & NAVIGATION */

.header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0 18px 0;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.header__logo {
    flex-shrink: 0;
}

#logo {
    width: 180px;
}

.nav__list {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav__link {
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-700);
    transition: color var(--transition-base);
    padding: var(--spacing-xs) 0;
    border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-coral);
    border-bottom-color: var(--color-coral);
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn--primary {
    background-color: var(--color-coral);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    border: 2px solid #d66a44;
}

.btn--primary:hover {
    background-color: #d66a44;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: #d66a44;
    border: 2px solid #d66a44;
    box-shadow: var(--shadow-md);
}

.btn--secondary:hover {
    background-color: #d66a44;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

/* HERO SECTION */

.hero {
    background-color: #fffbf5;
    padding: 7rem 0;
}

.hero img {
    border: 8px solid var(--color-white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 85%;
    position: relative;
    z-index: 3;
    display: block;
}

.hero-img-col {
    position: relative;
    z-index: 1;
    padding-left: 20px;
}

.hero-img-col .wp-block-image {
    position: relative;
    z-index: 3;
}

.hero-img-col:before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(91, 141, 181, 0.6) 0%, rgba(91, 141, 181, 0) 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.hero-img-col:after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.6) 0%, rgba(212, 175, 55, 0) 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.hero-ctas{
    display: flex;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap; /* mobilon törhessen */
}

.hero-trust{
  display: flex;
  gap: 22px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-trust__item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1e2732;
  white-space: nowrap;
}

.hero-trust__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e07856; 
}

.hero-trust__icon .icon{
  width: 18px;
  height: 18px;
  display: block;
}



/* MOBIL SECTION */

.mobil {
   padding: 3rem 0 7rem 0;
}

.feature-list {
    padding-top: 20px;
}

.feature-item,
.feature-item > .wp-block-group__inner-container {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 10px;
}

.feature-item > .wp-block-group__inner-container > * {
  margin-top: 0;
  margin-bottom: 0;
}

.feature-content {
  padding-top: 2px;
}

.feature-title {
  margin: 0 0 6px 0;                  
}

.feature-text {
  margin: 0 0 10px 0;               
}

.feature-line {
  width: 62px;
  height: 3px;
  background: var(--color-gold);
  margin: 0;
  border: 0;
}

.feature-item .wp-block-separator {
    border: none;
    border-top: none;
}

@media (max-width: 480px){
    .feature-item,
    .feature-item > .wp-block-group__inner-container {
    gap: 5px;
    padding-bottom: 20px;
    }
}


/* MOCKUP VIDEO */
.mockup-video{
  position: relative;
  overflow: hidden;
}

.mockup-video__el{
  width: 100%;
  height: auto;
  display: block;
}

/* GOMBOK */
.mockup-video__btn{
  position: absolute;
  border: 0;
  cursor: pointer;
  background: rgba(0,0,0,.55);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  transition: background .2s ease, opacity .2s ease, transform .2s ease;
}

.mockup-video__btn--play{
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mockup-video__btn--mute{
  right: 22px;
  bottom: 22px;
}

.mockup-video__btn:hover,
.mockup-video__btn:focus{
  background: #1e2732;
}

.mockup-video__btn:active{
  transform: scale(.96);
}

.mockup-video__btn--play:active{
  transform: translate(-50%, -50%) scale(.96);
}

.mockup-video__btn svg{
  width: 22px;
  height: 22px;
  display: block;
}

.mockup-video__btn svg path{
  fill: currentColor;
}

.mockup-video__btn svg path[stroke]{
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Ikon állapotok */
.mockup-video .icon-pause,
.mockup-video .icon-volume{
  display: none;
}

.mockup-video[data-state="playing"] .icon-play{
  display: none;
}
.mockup-video[data-state="playing"] .icon-pause{
  display: block;
}

.mockup-video[data-muted="sound"] .icon-muted{
  display: none;
}
.mockup-video[data-muted="sound"] .icon-volume{
  display: block;
}

/* Play gomb halványítás lejátszás közben */
.mockup-video[data-state="playing"] .mockup-video__btn--play{
  opacity: .25;
}
.mockup-video[data-state="playing"] .mockup-video__btn--play:hover{
  opacity: 1;
}

/* Paused state: play gomb kiemelése + pulzálás */
.mockup-video[data-state="paused"] .mockup-video__btn--play{
  background: #e07856;
  animation: mockupPulsePlay 1.3s ease-out 0s 3;
}

@keyframes mockupPulsePlay{
  0%   { transform: translate(-50%, -50%) scale(1);    box-shadow: 0 0 0 0 rgba(224,120,86,.55); }
  60%  { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 14px rgba(224,120,86,0); }
  100% { transform: translate(-50%, -50%) scale(1);    box-shadow: 0 0 0 0 rgba(224,120,86,0); }
}

/* Mute pulzálás */
.mockup-video[data-state="playing"][data-muted="muted"] .mockup-video__btn--mute{
  background: #e07856;
  animation: mockupPulseMute 1.3s ease-out 0s 2;
}

@keyframes mockupPulseMute{
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(224,120,86,.55); }
  60%  { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(224,120,86,0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(224,120,86,0); }
}

/* Tilt variáns */
.mockup-video--tilt{
  width: clamp(240px, 24vw, 320px);
  margin: 0;
  transform: rotate(6deg) translateZ(0);
  transform-origin: 25% 75%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  filter: none;
}

@media (max-width: 768px){
  .mockup-video--tilt{
    width: min(300px, 90%);
    transform: rotate(3deg) translateZ(0);
    margin: 0 auto;
  }
}




/* CALCULATORS SECTION */

.calculators {
    background-color: #fffbf5;
    padding: 5rem 0 7rem 0;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    padding: 0;
}

.calculator-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    text-decoration: none;
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.calculator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.calculator-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1F4E78;
    opacity: 0.8;
    transition: opacity 400ms ease;
    z-index: 1;
}

.calculator-card:hover .calculator-card__overlay {
    opacity: 0.85;
}

/* Ikon - jobb felso sarok */
.calculator-card__icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    transition: all 300ms ease;
    padding: 12px;
}

.calculator-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Feher szin */
}

.calculator-card__icon svg {
    width: 100%;
    height: 100%;
}

.calculator-card:hover .calculator-card__icon {
    transform: scale(1.1) rotate(5deg);
}


/* Tartalom - alsó rész */
.calculator-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculator-card__content h3 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.75em;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    transition: transform 300ms ease;
}

.calculator-card:hover .calculator-card__content h3 {
    transform: translateX(4px);
}

.calculator-card__description {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
}

.calculator-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: #e07856;
    border: 2px solid #e07856;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.3px;
    border-radius: 12px;
    transition: all 300ms ease;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.calculator-card:hover .calculator-card__cta {
    background: #e07856;
    color: white;
    border-color: #e07856;
    transform: translateX(4px);
}

.calculator-card:hover .calculator-card__cta::after {
    transform: translateX(4px);
}

/* Reszponziv */
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .calculator-card {
        min-height: 360px;
        padding: 2rem;
    }
    
    .calculator-card__icon {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .calculator-card__content h3 {
        font-size: 1.5em;
    }
    
    .calculator-card__description {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .calculator-card {
        min-height: 350px;
        padding: 1.5rem;
    }
    
    .calculator-card__content h3 {
        font-size: 1.3em;
    }

    .calculator-card__icon {
        width: 55px;
        height: 55px;
        top: 0.7rem;
        right: 0.7rem;
    }
}

.cal-page-height{
  height: 75px !important;
}



/* HOW WORK SECTION */

.how-work {
    padding: 3rem 0 7rem 0;
}

.how-work h4 {
    margin-top: 0;
}

.how-work-list {
    padding-left: 0;
}

.how-work-list li {
    color: var(--color-dark-navy);
    list-style-type: none;
    margin-left: 0;
    padding-left: 35px;
    padding-bottom: 0.5rem;
}

.work-check {
    background: url(/wp-content/themes/calfec-theme/img/icons/work-check.svg) no-repeat;
    background-position: 0 10%;
    background-size: auto 20px;
    margin-bottom: 0;
}

.work-card {
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 3rem;
}

.plus-text p {
    font-size: var(--font-size-sm);
    border-top: 1px solid var(--color-light-blue);
    color: var(--color-light-blue);
    padding-top: 20px;
}



/* FAQ SECTION */

.faq {
    background-color: #fffbf5;
    padding: 6rem 0 7rem 0;
}

.faq-width {
    width: 65%;
    margin: 0 auto;
    padding-top: 35px;
}
 
body .wp-block-cb-faqs .faq-label {
    cursor: pointer;
    margin-bottom: 10px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: rgba(31, 78, 120, 0.9);
    border-radius: var(--radius-lg);
}

body .wp-block-cb-faqs .faq-label h3 {
    color: var(--color-white);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
}

body .wp-block-cb-faqs .faq-label:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath fill='%23ffffff' d='M22,27.698c-0.358,0 -0.717,-0.136 -0.99,-0.409l-8.596,-8.597c-0.547,-0.547 -0.547,-1.434 -0,-1.98c0.546,-0.547 1.433,-0.547 1.98,-0l7.606,7.607l7.606,-7.607c0.547,-0.547 1.434,-0.547 1.98,-0c0.547,0.547 0.547,1.433 0,1.98l-8.596,8.597c-0.274,0.273 -0.632,0.409 -0.99,0.409Z'/%3E%3C/svg%3E");
    vertical-align: middle;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
    background: none;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.4s ease-in-out;
}

body .wp-block-cb-faqs .faq-content {
    padding: 10px 25px 5px 25px;
    border: none;
    margin-bottom: 10px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
}

body .wp-block-cb-faqs .faq-content p {
    margin-bottom: 20px;
    font-size: var(--font-size-base);
}


/* TEAM SECTION */

.team {
    padding: 6rem 0;
}

.team-list li {
    color: var(--color-dark-navy);
    list-style-type: none;
    margin-left: 0;
    padding-left: 35px;
    padding-bottom: 1rem;
}

.team-list {
    padding-left: 0;
}

.check {
    background: url(/wp-content/themes/calfec-theme/img/icons/feature-icon.svg) no-repeat;
    background-position: 0 10%;
    background-size: auto 20px;
    margin-bottom: 0;
}

.team img {
    border: 8px solid var(--color-white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 85%;
    position: relative;
    z-index: 3;
    display: block;
}

.team-img-col {
    padding-left: 40px;
    position: relative;
    z-index: 1;
}

.team-img-col .wp-block-image {
    position: relative;
    z-index: 3;
}


.team-img-col:before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(91, 141, 181, 0.6) 0%, rgba(91, 141, 181, 0) 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.team-img-col:after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.6) 0%, rgba(212, 175, 55, 0) 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}


/* LAST CTA SECTION */

.wp-block-group.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* scrollbar-vw bug ellen: clip */
html { overflow-x: hidden; }
@supports (overflow: clip) {
  html { overflow-x: clip; }
}

.last-cta.alignfull {
    background-image: 
    linear-gradient(to bottom, rgba(31, 78, 120, 0.9), rgba(31, 78, 120, 0.9)),
    url('/wp-content/themes/calfec-theme/img/cta-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 6rem 0 7rem 0;
    position: relative;
    overflow: hidden;
}

.last-cta p, .last-cta h2, .last-cta li {
    color: var(--color-white);
}

.last-cta-content {
    text-align: center; 
}

.last-cta-list li {
    list-style-type: none;
    margin-left: 0;
    padding-left: 35px;
    padding-bottom: 1rem;
}

.last-cta-list {
    padding: 20px 0;
    margin: 0 auto;
    text-align: left; 
    display: inline-block; 
    max-width: 600px;
}

.last-cta-check {
    background: url(/wp-content/themes/calfec-theme/img/icons/cta-feature.svg) no-repeat;
    background-position: 0 10%;
    background-size: auto 20px;
    margin-bottom: 0;
}


/* ABOUT PAGE */

.about-page {
    /*background-color: #fffbf5;*/
    padding: 4rem 0 5rem 0;
}

.about img {
    border: 8px solid var(--color-white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 85%;
    position: relative;
    z-index: 3;
    display: block;
}

.about-img-col {
    padding-left: 40px;
    position: relative;
    z-index: 1;
}

.about-img-col .wp-block-image {
    position: relative;
    z-index: 3;
}

.about-img-col:before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(91, 141, 181, 0.6) 0%, rgba(91, 141, 181, 0) 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.about-img-col:after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.6) 0%, rgba(212, 175, 55, 0) 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}



/* KAPCSOLAT */

.custom-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.custom-contact-list p {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 24px;   
    height: 24px;  
    margin-right: 12px;
    object-fit: contain;
}

.contact-link {
    text-decoration: none;
    color: var(--color-coral);
    font-size: 18px;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--color-dark-navy);
}

.flag-group {
    display: flex;
    gap: 6px;
    margin-left: 12px;
}

.flag-icon {
    font-size: 20px;
    filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.1)); 
}

.contact-img-col img {
    border: 8px solid var(--color-white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 85%;
    position: relative;
    z-index: 3;
    display: block;
}

.contact-img-col {
    padding-left: 40px;
    position: relative;
    z-index: 1;
}

.contact-img-col .wp-block-image {
    position: relative;
    z-index: 3;
}

.contact-img-col:before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(91, 141, 181, 0.6) 0%, rgba(91, 141, 181, 0) 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.contact-img-col:after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.6) 0%, rgba(212, 175, 55, 0) 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}





/* FOOTER */

footer {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

footer .row {
    border-bottom: 1px solid var(--color-gray-400);
    padding-bottom: 50px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

#footer-logo {
    height: 60px;
    width: 200px;
    margin-bottom: var(--spacing-md);
}

footer p {
    color: var(--color-gray-600);
    line-height: var(--line-height-relaxed);
    padding-right: 10px;
}

footer h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-dark-navy);
    font-weight: var(--font-weight-medium);
}

footer a {
    color: var(--color-coral);
    transition: color var(--transition-base);
}

footer a:hover {
    color: var(--color-gray-600);
}

#footer__contact {
    padding-left: 0;
}

#footer__contact li {
    padding-top: var(--spacing-xs);
}

.phone {
    background: url(/wp-content/themes/calfec-theme/img/icons/phone.svg) no-repeat;
    background-position: 0 10%;
    background-size: auto 20px;
    margin-bottom: 0;
}

.mail {
    background: url(/wp-content/themes/calfec-theme/img/icons/email.svg) no-repeat;
    background-position: 0 10%;
    background-size: auto 20px;
    margin-bottom: 0;
}

#footer__contact li a {
    margin-left: 0;
    padding-left: 40px;
    padding-bottom: 1rem;
}

.facebook a {
    background: url(/wp-content/themes/calfec-theme/img/icons/facebook.svg) center center no-repeat;
}

.tiktok a {
    background: url(/wp-content/themes/calfec-theme/img/icons/tik-tok.svg) center center no-repeat;
}

.instagram a {
    background: url(/wp-content/themes/calfec-theme/img/icons/instagram.svg) center center no-repeat;
}

.social {
    display: flex;
    margin: 0;
    padding-left: 0;
}

.social li a {
    width: 40px;
    height: 40px;
    display: inline-block;
    background-size: auto 25px;
}

#menu-foot-menu {
    padding-left: 0;
}

#menu-foot-menu li {
    padding-top: var(--spacing-xs);
}

#copyright {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
}

#copyright p {
    margin-top: 0;
    text-align: center;
}

#searchform {
    position: relative;
    width: 100%;
}

#searchform input[type="text"] {
    width: 100%;
    margin: 0;
}

#searchform button {
    border: none;
    height: 100%;
    width: 30px;
    position: absolute;
    right: 10px;
    background: none;
    padding: 0;
    border-radius: 0;
    margin-top: 0;
}

#searchform svg {
    border: none;
    height: 60%;
    width: 30px;
}

#gotop {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    background: var(--color-dark-navy);
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
}

#gotop svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

#gotop svg path {
    fill: #fff;
}


/* RESPONSIVE DESIGN */

@media (max-width: 1279px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
    }
    
    .calculator-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --spacing-3xl: 3rem;
        --spacing-2xl: 2.5rem;
    }
    
    #logo {
        width: 200px;
        height: 45px;
    }

    .hero {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .mobil {
        padding: 5rem 0 2rem 0;
    }

    .calculators {
        padding: 3rem 0 4rem 0;
    }

    .how-work {
        padding: 2rem 0 5rem 0;
    }

    .faq {
        padding: 4rem 0 5rem 0;
    }

    .faq-width {
        width: 100%;
    }

    .last-cta.alignfull {
        padding: 4rem 0 5rem 0;
    }
    
    .team {
        padding: 3rem 0 5rem 0;
    }

    .trust__grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    #gotop {
        display: none;
    }

    footer {
        padding: 4rem 0;
    }

    .about-page {
        padding: 2rem 0 3rem 0;
    }

    .cal-page-height{
        height: 35px !important; 
    }

    .mobile-first {
        order: -1;
    }

}

@media (max-width: 480px) {
    :root {
        --container-padding: var(--spacing-sm);
        --font-size-5xl: 1.75rem;
    }
    .btn {
        justify-content: center;
    }
    
    h1 {
        font-size: 1.9rem;
    }

    h2 {
        margin-bottom: 35px;
    }

    .work-card {
        padding: 1rem 2rem 2.5rem 2rem;
    }

    .img-team {
        padding-top: 20px;
    }

    .team-img-col {
        padding-left: 0;
    }

    .hero img, .about-page img {
        width: 100%;
    }

    .about-img-col, .contact-img-col {
        padding-left: 0;
    }
}

/* ANIMATIONS */

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

@media (prefers-reduced-motion: no-preference) {
    .hero__content,
    .trust__item,
    .calculator-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .trust__item:nth-child(2) {
        animation-delay: 0.1s;
    }
    
    .trust__item:nth-child(3) {
        animation-delay: 0.2s;
    }
    
    .trust__item:nth-child(4) {
        animation-delay: 0.3s;
    }
}

/* KALKULÁTOR KÁRTYÁK MOBIL OPTIMALIZÁLÁS
   480px alatt kompakt horizontális elrendezés */

@media (max-width: 480px) {
    
    .calculator-grid {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .calculator-card {
        min-height: 80px;
        max-height: 80px;
        padding: 1rem 1.25rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        background-size: cover;
        background-position: center;
    }
    
    .calculator-card__overlay {
        background: linear-gradient(135deg, 
            rgba(31, 78, 120, 0.92) 0%, 
            rgba(30, 39, 50, 0.88) 100%
        );
        opacity: 1;
    }
    
    .calculator-card:hover .calculator-card__overlay {
        opacity: 1;
        background: linear-gradient(135deg, 
            rgba(31, 78, 120, 0.95) 0%, 
            rgba(30, 39, 50, 0.92) 100%
        );
    }
    
    .calculator-card__icon {
        position: static; 
        width: 48px;
        height: 48px;
        min-width: 48px; 
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
        padding: 8px;
        margin-right: 1rem;
    }
    
    .calculator-card:hover .calculator-card__icon {
        transform: scale(1.05); 
        background: rgba(255, 255, 255, 0.18);
    }
    
    .calculator-card__content {
        flex: 1;
        gap: 0;
        align-items: flex-start;
        justify-content: center;
    }
    
    .calculator-card__content h3 {
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.3;
        margin: 0;
    }
    
    .calculator-card__description {
        display: none;
    }
    
    .calculator-card__cta {
        display: none;
    }
    
    .calculator-card__cta::before {
        content: '→';
        font-size: 1.5rem;
        font-weight: 700;
        color: #e07856;
        transition: all 250ms ease;
    }
    
    .calculator-card__cta {
        font-size: 0; 
        overflow: hidden;
        text-indent: -9999px;
    }
    
    .calculator-card:hover .calculator-card__cta {
        background: rgba(224, 120, 86, 0.15);
        transform: translateX(0); 
    }
    
    .calculator-card:hover .calculator-card__cta::before {
        transform: translateX(3px);
    }
    
    .calculator-card:hover {
        transform: translateY(-2px); 
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    
    .calculator-card:hover .calculator-card__content h3 {
        transform: translateX(2px); 
    }
}


/* ANIMÁCIÓS VÁLTOZÓK */
:root {
    --animation-duration: 0.8s;
    --animation-easing: ease-out;
    --slide-distance: 60px;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity var(--animation-duration) var(--animation-easing),
                transform var(--animation-duration) var(--animation-easing);
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity var(--animation-duration) var(--animation-easing),
                transform var(--animation-duration) var(--animation-easing);
}

.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--animation-duration) var(--animation-easing),
                transform var(--animation-duration) var(--animation-easing);
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.15s; }
.animate-delay-2 { transition-delay: 0.3s; }
.animate-delay-3 { transition-delay: 0.45s; }
.animate-delay-4 { transition-delay: 0.6s; }

.animate-fast { transition-duration: 0.4s !important; }
.animate-slow { transition-duration: 1.2s !important; }

/* Heading blokkok */
.wp-block-heading.animate-slide-left,
.wp-block-heading.animate-slide-right,
.wp-block-heading.animate-fade-up {
    opacity: 0;
}

.wp-block-heading.animate-slide-left.visible,
.wp-block-heading.animate-slide-right.visible,
.wp-block-heading.animate-fade-up.visible {
    opacity: 1;
}

/* Paragraph blokkok */
.wp-block-paragraph.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
}

.wp-block-paragraph.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Group blokkok */
.wp-block-group.animate-slide-left,
.wp-block-group.animate-slide-right,
.wp-block-group.animate-fade-up {
    opacity: 0;
}

.wp-block-group.animate-slide-left.visible,
.wp-block-group.animate-slide-right.visible,
.wp-block-group.animate-fade-up.visible {
    opacity: 1;
}

/* Columns blokkok - lépcsőzetes animáció */
.wp-block-columns.animate-fade-up .wp-block-column {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--animation-duration) var(--animation-easing),
                transform var(--animation-duration) var(--animation-easing);
}

.wp-block-columns.animate-fade-up.visible .wp-block-column:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.wp-block-columns.animate-fade-up.visible .wp-block-column:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.wp-block-columns.animate-fade-up.visible .wp-block-column:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.wp-block-columns.animate-fade-up.visible .wp-block-column:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}

/* Button blokkok */
.wp-block-button.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
}

.wp-block-button.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image blokkok */
.wp-block-image.animate-fade-up,
.wp-block-image.animate-slide-left,
.wp-block-image.animate-slide-right {
    opacity: 0;
}

.wp-block-image.animate-fade-up.visible,
.wp-block-image.animate-slide-left.visible,
.wp-block-image.animate-slide-right.visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .animate-slide-left,
    .animate-slide-right,
    .animate-fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.block-editor-page .animate-slide-left,
.block-editor-page .animate-slide-right,
.block-editor-page .animate-fade-up {
    opacity: 1 !important;
    transform: none !important;
}

/* MOBIL OPTIMALIZÁLÁS */

@media (max-width: 768px) {
    :root {
        --animation-duration: 1s;        
        --animation-easing: ease-out;
        --slide-distance: 50px;          
    }

    .animate-slide-left {
        opacity: 0;
        transform: translateX(-50px);    
        transition: opacity 1s ease-out,
                    transform 1s ease-out;
    }
    
    .animate-slide-left.visible {
        opacity: 1;
        transform: translateX(0);
    }
    
    .animate-slide-right {
        opacity: 0;
        transform: translateY(40px);    
        transition: opacity 1s ease-out,
                    transform 1s ease-out;
    }
    
    .animate-slide-right.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .animate-fade-up {
        opacity: 0;
        transform: translateY(50px);     
        transition: opacity 1s ease-out,
                    transform 1s ease-out;
    }
    
    .animate-fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .animate-delay-1 { 
        transition-delay: 0.2s;          
    }
    
    .animate-delay-2 { 
        transition-delay: 0.4s;          
    }
    
    .animate-delay-3 { 
        transition-delay: 0.6s;          
    }
    
    .animate-delay-4 { 
        transition-delay: 0.8s;
    }

    .animate-fast { 
        transition-duration: 0.7s !important;  
    }
    
    .animate-slow { 
        transition-duration: 1.5s !important;   
    }
}

@media (max-width: 480px) {
    :root {
        --animation-duration: 1.2s;      
    }
    
    .animate-slide-left,
    .animate-slide-right,
    .animate-fade-up {
        transition-duration: 1.2s;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    :root {
        --animation-duration: 0.8s;      
    }
}

.countup-number {
    display: inline-block;
    min-width: 4.5ch;            
    text-align: right;           
    font-variant-numeric: tabular-nums;  
    font-feature-settings: "tnum"; 
}

/* =========================
   CalFec CF7 – pályázati form (layout + skin)
   ========================= */

.cf7-calfec-wrap,
.cf7-calfec-wrap * {
  box-sizing: border-box;
}

/* Card / doboz */
.cf7-calfec-wrap {
  background: var(--color-light-bg);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  padding: var(--spacing-md);
}

.cf7-calfec-wrap .wpcf7-form {
  max-width: 640px;
  margin: 0 auto;
}

.cf7-calfec-wrap .cf7-field {
  display: block;
  width: 100%;
}

.cf7-calfec-wrap .cf7-field p {
    margin-top: 5px;
    margin-bottom: 5px;
}

.cf7-calfec-wrap .cf7-label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.2;
  color: var(--color-dark-navy);
  font-weight: var(--font-weight-medium);
}

/* grid – mobilon 1 oszlop, desktopon 2 (kisebb gap) */
.cf7-calfec-wrap .cf7-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 14px; /* row-gap, column-gap */
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .cf7-calfec-wrap .cf7-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cf7-calfec-wrap {
    padding: var(--spacing-lg);
  }
}

.cf7-calfec-wrap input[type="text"],
.cf7-calfec-wrap input[type="email"],
.cf7-calfec-wrap input[type="tel"],
.cf7-calfec-wrap textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  padding: 9px 12px;
  font-size: 14px;
  border-radius: var(--radius-md);

  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  color: var(--color-gray-900);
  font-family: var(--font-body);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.cf7-calfec-wrap textarea {
  min-height: 48px!important;
  margin-top: 2px;
}

.cf7-calfec-wrap ::placeholder {
  color: var(--color-gray-500);
}

.cf7-calfec-wrap input[type="text"]:focus,
.cf7-calfec-wrap input[type="email"]:focus,
.cf7-calfec-wrap input[type="tel"]:focus,
.cf7-calfec-wrap textarea:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 4px rgba(224, 120, 86, 0.18);
}

.cf7-calfec-wrap .cf7-submit {
  margin-top: 20px;
}

.cf7-calfec-wrap input[type="submit"] {
  width: auto;                 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;          
  font-size: 15px;
  border-radius: var(--radius-md);
  background: var(--color-coral);
  color: var(--color-white);
  border: 2px solid #d66a44;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}


.cf7-calfec-wrap input[type="submit"]:hover {
  background: #d66a44;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
  .cf7-calfec-wrap {
    padding: var(--spacing-md);
  }
}

.wpcf7 br {
  display: none !important;
}

.cf7-calfec-wrap .cf7-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-gray-700);
  margin-top: 4px;
}

.cf7-calfec-wrap .cf7-gdpr input[type="checkbox"] {
  margin-top: 2px;
}

.cf7-calfec-wrap .cf7-gdpr a {
  color: var(--color-dark-navy);
  text-decoration: underline;
}

.cf7-calfec-wrap .wpcf7-not-valid-tip {
  font-size: 12px;
  line-height: 1.3;
  margin-top: 4px;
  color: #b42318; 
}

.cf7-calfec-wrap .wpcf7-validation-errors,
.cf7-calfec-wrap .wpcf7-response-output {
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 12px;
  margin-top: 12px;
}

/* CF7: select (dropdown) – ugyanaz a skin, mint az inputok */
.cf7-calfec-wrap select {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  padding: 9px 42px 9px 12px; /* jobb oldali hely a nyílnak */
  font-size: 14px;
  border-radius: var(--radius-md);

  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  color: var(--color-gray-900);
  font-family: var(--font-body);

  transition: border-color var(--transition-base), box-shadow var(--transition-base);

  /* natív nyíl egységesítés */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* saját nyíl */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-gray-600) 50%),
    linear-gradient(135deg, var(--color-gray-600) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.cf7-calfec-wrap select:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 4px rgba(224, 120, 86, 0.18);
}

/* include_blank esetén az „üres” állapot halványabb legyen */
.cf7-calfec-wrap select:invalid {
  color: var(--color-gray-500);
}

/* CalFec CF7 – success / error üzenetek (CF7 response output) */

.wpcf7-response-output {
  margin: 12px 0 0 0 !important;
  padding: 12px 14px !important;
  border-radius: var(--radius-md) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  border-width: 1px !important;
}

.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.wpcf7-mail-sent-ok .wpcf7-response-output {
  background: rgba(34, 197, 94, 0.08) !important;   
  border-color: rgba(34, 197, 94, 0.35) !important;
  color: #14532d !important;       
}                 

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  background: rgba(180, 35, 24, 0.08) !important;
  border-color: rgba(180, 35, 24, 0.35) !important;
  color: #7a1b13 !important;
}

.wpcf7 form.spam .wpcf7-response-output {
  background: rgba(255, 193, 7, 0.12) !important;
  border-color: rgba(255, 193, 7, 0.35) !important;
  color: #6b5200 !important;
}

/* ========== CalFec valuta váltó (ütközésmentes) ========== */
#calfecCurrencyToggle {
  margin: 18px 0;
}

#calfecCurrencyToggle .calfec-currency-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#calfecCurrencyToggle .calfec-currency-title {
  font-weight: 600;
}

#calfecCurrencyToggle .calfec-currency-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

/* Switch (checkbox) – csak a mi ID-nkra */
#calfecCurrencyToggle #calfecCurrencySwitch {
  width: 44px;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: #e6e6e6;
  border: 1px solid rgba(0,0,0,.12);
  position: relative;
  outline: none;
  transition: background .15s ease, border-color .15s ease;
}

#calfecCurrencyToggle #calfecCurrencySwitch::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: left .15s ease;
}

#calfecCurrencyToggle #calfecCurrencySwitch:checked {
  background: var(--color-coral);
  border-color: rgba(0,0,0,.08);
}

#calfecCurrencyToggle #calfecCurrencySwitch:checked::after {
  left: 22px;
}

#calfecCurrencyToggle .calfec-currency-pill {
  font-weight: 600;
  font-size: 14px;
  opacity: .75;
}

#calfecCurrencyToggle .calfec-currency-meta {
  margin-top: 8px;
  font-size: 13px;
  opacity: .8;
}

/* SZAKEMBERKERESŐ SECTION */

.last-cta2.alignfull {
    background-image: 
    linear-gradient(to bottom, rgba(31, 78, 120, 0.85), rgba(31, 78, 120, 0.85)),
    url('/wp-content/themes/calfec-theme/img/cta-bg2.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 6rem 0 7rem 0;
    position: relative;
    overflow: hidden;
}

.last-cta2 h2 {
    color: var(--color-white);
    margin-bottom: 35px;
    font-size: var(--font-size-4xl);
    font-weight: 600;
}

.last-cta2 p, .last-cta2 li {
    color: var(--color-white);
}