@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

:root {
    --black-1: #151515;
    --black-2: #1B1B1B;
    --black-3: #1D1E20;

    --blue-1: #49586C;
    --blue-2: #8FA9CA;

    --blue-3: #3E4E64;
    --white: #F5F5F5;


    --bs-dark-rgb: 27, 27, 27;

}

.black-2-bg {
    background-color: var(--black-2) !important;
}

.blue-2-color {
    color: var(--blue-2) !important;
}

.white-color {
    color: var(--white) !important;
}

h1 {
    font-family: 'Gloock', serif;
}

h2 {
    font-family: 'Gloock', serif;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px !important;
}


.nav-link {
    color: var(--white);
    padding: 15px !important;
    margin-left: 21px !important;
    margin-right: 21px !important;
}

.nav-link:hover {
    color: var(--blue-2) !important;

}

.active {
    color: var(--blue-2) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 10px;
}

.dropdown-item{
    color: var(--white) !important;
    background-color: var(--black-2) !important;
}

.dropdown-item:hover {
    color: var(--blue-2) !important;
    background-color: var(--black-1) !important;
}

.info-box {
    display: none;
    position: absolute;
    top: 65px;
    border-radius: 7px;
    background: linear-gradient(180deg, #181818 -30%, #1B1C1D 52.21%, #49586C 363.33%);
    width: 100%;
    color: var(--white);
    z-index: 3;
}


.info-box-text {
    display:  none;
    padding-top: 30px;
    padding-bottom: 10px;
}

/* .first-section {
    background-image: url('images/fooldal-kep-1.png'); 

    background-repeat: no-repeat; /* Prevents the image from repeating /
    background-position: center; /* Centers the image horizontally and vertically
    background-size: cover; 

} */
.first-section {
    background-image: url('images/fooldal-kep-1.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-top: -20px;
    padding-top: 100px;
    padding-bottom: 100px;
    z-index: 0;
    position: relative;
}


.hero-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 600px;
    margin: 0;
}

.btn-cta {
    background-color: #49586C;
    text-align: center;
    color: #fff;
    border: none;
    border-radius: 7px;
    width: 248px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;

    margin-left: auto; /* NEW */
    margin-right: auto; /* NEW */

    padding: 30px 20px;
}

.btn-cta:hover {
    background-color: #798BA3;
    text-decoration: none;
    color: var(--white);
}

.hero-mask svg {
    display: block;
}


/* .first-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 30%;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
} */

/* .btn-cta {
    border-radius: 7px;
    background: linear-gradient(90deg, #49586C 0%, #798BA3 175.57%);
    color: var(--white);
    border: none;
    width: 248px;
    height: 52px;
    flex-shrink: 0;
} */

.big-one {
    color: rgba(0, 0, 0, 0.10);
    font-size: 225px;
    font-family: Gloock;
    font-weight: 400;
    word-wrap: break-word
}





.left-half {
    padding-top: 300px;
    padding-bottom: 300px;
    background: url('images/gepjarmu-kep.png') no-repeat center center/cover;
}

/* Right half styling */
.right-half {
    padding-top: 200px;
    padding-bottom: 200px;
    background: url('images/vagyon-kep.png') no-repeat center center/cover;
}

.divider-line {
    position: absolute;
    /* Position it absolutely within the container */
    top: 0;
    /* Align to the top of the parent container */
    bottom: 0;
    /* Stretch to the bottom of the parent container */
    left: 50%;
    /* Center it horizontally */
    transform: translateX(-50%);
    /* Adjust centering */
    width: 4px;
    /* Set the width of the line */
    background-color: white;
    /* Set the color of the line */
    z-index: 1;
    /* Ensure it appears below the circle */
}

/* Divider Circle Styling */
.divider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: 80px;
    height: 80px; */
    z-index: 2;
    /* Ensure it appears above the divider line */
    background-color: black;
    /* Optional background color for masking effect */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    /* Make it a perfect circle */
    overflow: hidden;
    /* Ensures anything inside does not overflow */
}

@media (max-width: 768px) {
    .divider-line {
        top: 50%;
        left: 0;
        right: 0;
        margin: auto;
        height: 4px;
        width: 100%;
        transform: none;
        /* remove previous transform */
    }

    .divider-circle {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80px;
        height: 80px;
    }

    /* Adjust left-half and right-half paddings for mobile */
    .left-half,
    .right-half {
        padding-top: 150px;
        padding-bottom: 150px;
    }
}

.third-section {
    background-color: var(--white);
}

.h1-blue {
    color: var(--blue-1);
    padding-top: 80px;
}


.circle {
    background-color: var(--blue-1);
    width: 91px;
    height: 91px;
    border-radius: 50%;
}

.circle-white {
    background-color: var(--white);
    width: 91px;
    height: 91px;
    border-radius: 50%;
}


.fourth-section {
    background-image: url(images/gepjarmu-kalkulator-kep.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.vagyon-bg{
    background-image: url(images/vagyon-kep.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.form-control {
    border-radius: 7px;
}

a {
    color: var(--white)
}

a:hover {
    color: var(--blue-2)
}

.form-check {
    position: relative;
    padding-left: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check-input[type="checkbox"],
.form-check-input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox,
.custom-radio {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

.custom-checkbox {
    border-radius: 3px;
    /* Square */
}

.custom-radio {
    border-radius: 3px;
    /* Circle */
}

/* When Checked */
.form-check-input[type="checkbox"]:checked~.custom-checkbox,
.form-check-input[type="radio"]:checked~.custom-radio {
    border-color: #007bff;
    background-color: #e6f0ff;
}

.form-check-input[type="checkbox"]:checked~.custom-checkbox::after,
.form-check-input[type="radio"]:checked~.custom-radio::after {
    content: '';
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    background-image: url(images/active-check.svg);
    background-size: cover;
    border-radius: 2px;
}


.custom-select {
    background-color: transparent;
    color: white;
    border: 1px solid gray;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="white" d="M0 0l2 2 2-2z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.65rem auto;
    padding-right: 0rem;
}

.custom-select:focus {
    background-color: #1f1f1f;
    color: white;
    border-color: #1f1f1f;
    box-shadow: none;
}

.custom-option:hover {
    background-color: #1f1f1f;
    color: pink;
}



.fourth-section input.form-control,
.fourth-section select.form-select {
    height: 48px;
    padding: 10px 12px;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
}

.fourth-section input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    height: 48px;
    padding: 10px 12px;
    font-size: 1rem;
}


/* Biztositas */

.timeline-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-title {
    text-align: center;
    font-family: 'Gloock', serif;
    font-size: 2rem;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    position: relative;
}

.timeline-image {
    width: 150px;
    height: 150px;
    background: #ccc;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
}

/* Line above */


/* Line below */
.timeline-image::after {
    content: '';
    position: absolute;
    bottom: -40px;
    /* height of the gap after the image */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background-color: #2c3e50;
}

/* Last item: remove bottom line */
.timeline-item:last-child .timeline-image::after {
    display: none;
}


.timeline-content {
    flex: 1;
}

.timeline-step {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content p {
    margin: 0;
    color: #333;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}


/* kapcsolat */
.contact-section {
    background-color: var(--black-2);
    color: var(--white);
    padding: 40px 15px; /* default small padding for mobile */
}

@media (min-width: 768px) {
    .contact-section {
        padding: 40px 200px; /* large padding only on tablet and up */
    }
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-section p {
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: none;
    background-color: #fff;
    color: #000;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.gdpr label {
    display: flex;
    align-items: center;
    gap: 8px;
}

button {
    padding: 12px 20px;
    background-color: #415b79;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2e445d;
}

.success-message {
    padding: 12px;
    border: 1px solid #415b79;
    background-color: #1b1b1b;
    border-radius: 5px;
    font-size: 0.9rem;
}



/* Second Section - Biztositasok */
.second-section {
    position: relative;
}

.second-section .content-wrapper {
    padding: 60px 40px;
    max-width: 500px;
    margin: 0 auto;
}

.second-section h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid white;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.second-section .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.second-section .list-title {
    font-size: 1rem;
    margin: 30px 0 20px 0;
    font-weight: 500;
}

.second-section .custom-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.second-section .custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.second-section .custom-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--blue-2);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(143, 169, 202, 0.3);
    transition: all 0.3s ease;
}

.second-section .custom-list li:hover::before {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(143, 169, 202, 0.5);
    transform: translateY(-50%) scale(1.2);
}

/* Right-aligned content adjustments */
.second-section .content-wrapper.text-md-end .custom-list li {
    padding-left: 0;
    padding-right: 25px;
}

.second-section .content-wrapper.text-md-end .custom-list li::before {
    left: auto;
    right: 0;
}


.second-section .btn-cta {
    margin-top: 40px;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive design for second section */
@media (max-width: 768px) {
    .second-section .content-wrapper.text-md-end {
        text-align: left !important;
    }

    .second-section .content-wrapper.text-md-end .custom-list li {
        padding-left: 25px;
        padding-right: 0;
    }

    .second-section .content-wrapper.text-md-end .custom-list li::before {
        left: 0;
        right: auto;
    }
}


/* GYIK */
.accordion {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.accordion-item {
    border: none;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 8px;
}

.accordion-button {
    background-color: #fff;
    color: #333;
    font-weight: 500;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

/* Remove Bootstrap's default chevron */
.accordion-button::after {
    display: none;
}

/* The left arrow */
.accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    filter: brightness(0%);
    /* force the arrow to black */
}

/* Rotate the arrow when open */
.accordion-button:not(.collapsed) .accordion-icon {
    transform: rotate(180deg);
    filter: brightness(100%);
}

/* Hover effect ONLY when closed */
.accordion-button:hover {
    background-color: #f8f9fa;
}

/* When OPEN and hover, stay dark */
.accordion-button:not(.collapsed) {
    background-color: #2c3e50;
    color: #fff;
}

.accordion-button:not(.collapsed):hover {
    background-color: #2c3e50;
}

/* Remove focus blue ring */
.accordion-button:focus {
    box-shadow: none;
    outline: none;
}

/* Accordion body */
.accordion-body {
    background-color: #2c3e50;
    color: #fff;
    border-top: 1px solid #444;
    padding: 1rem;
}

/* Links inside body */
.accordion-body a {
    color: #8ab4f8;
    text-decoration: underline;
}

/* Highlight text inside the button */
.accordion-button .highlight {
    font-weight: bold;
}