:root{
    
    --border-radius: 8px;
    
    --main_pale: hsl(178 39.5% 85.1%);
    --main: hsl(178 90.9% 12.9%);
    --main_accent: #109648;

    --accent1: hsl(39, 100%, 63%);
    --accent2: hsl(211, 89%, 58%);

    --main_shadow: 0px 1px 4px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    color: inherit;

}   

input{
    box-sizing: border-box;
}


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

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #f9f9f9;
    padding: 8px;
}

a {
    text-decoration: none;
    color: inherit;
}

nav{
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);    
    border-radius: calc(var(--border-radius) * 2);
    padding: 8px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    margin: 8px;

    display: flex;
    column-gap: 32px;
    align-items: center;
    position: sticky;
    top: 8px;
    z-index: 9999;
}

.phone_btn{
    display: none;
    cursor: pointer;
}

nav ul{
    display: flex;
    gap: 16px;
    list-style: none;
    font-size: 18px;
    padding: 8px;
    font-weight: 500;

    li{
        padding: 8px;
        border-radius: 8px;
        width: 120px;
        text-align: center;
        transition: all .3s;
    }

    li.active{
        background-color: var(--main);
        color: white;
    }

    >li:hover{
        background-color: var(--main);
        color: white;
    }
}

.special_link{
    display: flex;
    align-items: center;
    background-color: var(--main);
    color: white;
    padding: 8px;
    border-radius: 8px;
    column-gap: 8px;
    font-weight: 500;
    margin-left: auto;
    font-size: 20px;
    box-shadow: var(--main_shadow) var(--main);

    transition: all .3s;
}

.special_link:hover{
    box-shadow: var(--main_shadow) var(--main_pale);
}

section{
    padding: 32px;
    width: 1680px;
    margin: 64px auto;
}

.maxW{
    width: 100%;
}

.fullW{
    width: 100%;
}

.fitW{
    width: 1264px;
}

section.split{
    display: grid;
    grid-template-columns: 55% 1fr;
    column-gap: 32px;
}

section.split.reverse{
    grid-template-columns: 45% 1fr;
}

section.split.half{
    grid-template-columns: 1fr 1fr;
}

.icon_holder{
    padding: 8px;
    border-radius: 50%;
    display: inline-block;
    background-color: white;
    user-select: none;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.icon_holder.action{
    cursor: pointer;
    transition: all .3s;
    &:hover{
        background-color: hsl(178 39.5% 85.1%);
    }
}

.btn{
    height: 42px;
    border: none;
    outline: none;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before{
    content: "";
    position: absolute;
    right: 0px;
    top: 0px;
    background-color: var(--main);
    width: 50px;
    height: 100%;

    background-image: url('../images/arrow_btn.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px;
    transition: all .3s;
}

.btn:hover::before{
    background-position-x: 15px;
}

.btn.main{
    color: #333;
    font-size: 18px;
    font-weight: 500;
    background-color: var(--accent1);
    box-shadow: var(--main_shadow) var(--accent1);
    border-bottom: 2px solid hsl(39, 100%, 35%);
    text-indent: -40px;
}

.btn.main:hover{
    background-color: hsl(39, 100%, 53%);
}

.btn.secondary::before{
   display: none;
}

.btn.secondary{
    color: white;
    font-size: 18px;
    font-weight: 500;
    background-color: var(--main);
    padding: 0px 16px;
    transition: all .3s;
}

.btn.secondary.small{
    padding: 0px 12px;
    height: 40px;
    font-size: 16px;
}

.btn.secondary:hover{
    background-color: hsl(178 39.5% 85.1%);
    color: #333;
}

.pre_title{
    display: flex;
    align-items: center;
    color: var(--main_accent);
}

.pre_title h3{
    font-size: 20px;
}

h1{
    font-family: "Tenor Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
  
    line-height: 60px;
    font-size: 60px;
    margin-top: 8px;
    color: #333;;
}

h1 u{
    font-family: inherit;
    position: relative;
    display: inline-block;
    width: max-content;
    text-decoration: none;
}

h1 u::after{
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0px;
    height: 14px;
    width: 100%;
    background-color: var(--main_accent);
    opacity: .5;
    z-index: -1;
    transform: translateY(-8px);
}

.section_p
{
      font-family: "Tenor Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 22px;
    font-weight: 400;
    color: #333;
    margin-top: 32px;
}

.section_p > *{
          font-family: "Tenor Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.section_p.sm{
    font-size: 18px;
    font-weight: 400;
    color: #333;
}

.section_p.info{
    margin-top: 16px;

}

.split_content--img{
    position: relative;
    text-align: center;

    > img{
        width: 100%;
    }
}


footer{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    justify-content: space-between;
    column-gap: 64px;
    width: 1160px;
    margin: 0px auto;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

footer b{
    margin-bottom: 16px;
    display: block;
}

.footer_contact li { 
    display: flex;
    align-items: flex-start;
    font-size: 18px;
    font-weight: 500;
    gap: 16px;
}

footer .legal{
    grid-column: 1/-1;
}

footer .legal{
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

footer a:hover{
    text-decoration: underline;
}

.page_header_bg{
    display: flex;
    justify-content: center;
    align-items: center;

    background: url('../images/2148551056.jpg');
    background-size: cover;
    background-position: bottom;
    border-radius: 16px;
    min-height: 400px;
    position: relative;
    margin-top: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.page_header{
    z-index: 99;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    h1{
        color: white;
    }
}


.page_header_bg .overlay{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    opacity: 1;
    background-image: linear-gradient(to top right, var(--main) 5%, transparent);
}

.page_header_bg span{
    display: flex;
    align-items: center;
    font-size: 20px;
    margin-top: 16px;
    gap: 8px;

    > i{
        font-weight: bold;
        color: var(--main_pale);
    }
}

form{
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    position: relative;
    padding: 8px;
}


.form_row{
    width: 100%;
}

.form_row.split{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
}

label:not([for="acceptTerms"]) {
    position: relative;
    margin-top: 12px;
    width: 100%;
    display: block;
    border: 1px solid var(--main);
    border-radius: 8px;
}

/* Stiluri pentru checkbox-ul de termeni */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.4;
}

.terms-checkbox input[type="checkbox"] {
    min-width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px; /* Aliniere cu textul */
    cursor: pointer;
    accent-color: var(--main);
    border: 2px solid #ddd;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.terms-checkbox input[type="checkbox"]:hover {
    border-color: var(--main);
}

.terms-checkbox input[type="checkbox"]:checked {
    background-color: var(--main);
    border-color: var(--main);
}

.terms-checkbox input[type="checkbox"]:focus {
    outline: 2px solid var(--main);
    outline-offset: 2px;
}

.terms-checkbox label {
    cursor: pointer;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.terms-checkbox label span {
    display: block;
}

.terms-checkbox a {
    color: var(--main);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-checkbox a:hover {
    color: var(--main_dark, #2c5f5f);
    text-decoration-thickness: 2px;
}

.terms-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
    padding: 5px 0;
}

/* Animație pentru eroarea de termeni */
.terms-error.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

/* Stiluri pentru starea de eroare */
.terms-checkbox.error input[type="checkbox"] {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.terms-checkbox.error label {
    color: #dc3545;
}

/* Responsive pentru mobile */
@media (max-width: 768px) {
    .terms-checkbox {
        gap: 10px;
        margin: 16px 0;
        font-size: 13px;
    }
    
    .terms-checkbox input[type="checkbox"] {
        min-width: 16px;
        height: 16px;
    }
    
    .terms-error {
        font-size: 11px;
    }
}

/* Custom checkbox styling pentru browsere mai vechi */
.terms-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    background: white;
}

.terms-checkbox input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Stiluri pentru focus pe label */
.terms-checkbox label:hover {
    color: #555;
}

/* Stil pentru când checkbox-ul este invalid */
.terms-checkbox input[type="checkbox"]:invalid {
    border-color: #dc3545;
}

/* Stil pentru textul de acordare */
.terms-checkbox label span {
    user-select: none;
}

/* Stiluri pentru link-urile din text */
.terms-checkbox a:focus {
    outline: 2px solid var(--main);
    outline-offset: 1px;
    border-radius: 2px;
}

 label:not([for="acceptTerms"]) span{
    position: absolute;
    top: 8px;
    left: 8px;
    transition: all .2s;
}

label input{
    padding: 8px;
    border: none;
    border-radius: 8px;
    outline: none;
    width: 100%;
}

label input:focus + span{
    top: -10px;
    left: 4px;
    font-size: 14px;
    background-color: white;
    padding: 0px 4px;
}

label input:valid + span,
label input:read-only:not(:placeholder-shown) + span{
    top: -10px;
    left: 4px;
    font-size: 14px;
    background-color: white;
    padding: 0px 4px;
}

label img{
    width: 24px;
    height: 24px;
}

label:has(img){
    display: flex !important;
    align-items: center;
}

label textarea{
    padding: 8px;
    border: none;
    border-radius: 8px;
    outline: none;
    width: 100%;
    resize: none;
    box-sizing: border-box;
}

label select {
    width: 100%;
    border: none;
    outline: none; 
    padding: 8px; 
    box-sizing: border-box; 
    background-color: transparent; 
    appearance: none; 
}

label:has(select)::after {
    content: '';
    position: absolute;
    right: 8px;
    top: calc(50% - 5px);
    width: 11px;
    height: 16px;
    background-image: url('../images/chevron\ \(1\).svg');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    pointer-events: none; 
}


label select:focus {
    outline: none; 
}

label textarea:focus + span{
    top: -10px;
    left: 4px;
    font-size: 14px;
    background-color: white;
    padding: 0px 4px;
}

label textarea:valid + span{
    top: -10px;
    left: 4px;
    font-size: 14px;
    background-color: white;
    padding: 0px 4px;
}

.price_table--container{
    display: flex;
    row-gap: 16px;
    flex-direction: column;
}

.price_table--header{
    display: grid;
    grid-template-columns: 300px max-content;
    align-items: baseline;
    column-gap: 16px;
}

.price_table{
    border-collapse: collapse;
    font-size: 0.9em;
    font-family: sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    width: 100%;
}

.price_table thead tr {
    background-color: var(--main);
    color: white;
    font-size: 20px;
    text-align: left;
}

.price_table th,
.price_table td {
    padding: 12px 15px;
    font-weight: bold;
}


.price_table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.price_table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.price_table tbody tr:last-of-type {
    border-bottom: 2px solid var(--main);
}

.price_table tbody tr:hover {
    background-color: var(--main_pale);
    color: #333;
}

#price_table-info{
    font-size: 14px;
}

.faq{
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    margin-top: 24px;
}

.faq_item {
    display: grid;
    grid-template-rows: auto 0fr;
    row-gap: 16px;

    transition: all .3s;
}

.faq_item.active{
    grid-template-rows: auto 1fr;
}

.faq_item.active span{
    background-color: rgba(255, 255, 255, 1);
}

.faq_item.active .faq_item--header > img{
    transform: rotate(135deg);
}

.faq_item p{
    padding-left: 16px;
    overflow: hidden;
}

.faq p, .faq h3{
    color: white;
}

.faq_item--header{
    border-radius: 48px;
    border: 1px solid white;
    padding: 16px;
    cursor: pointer;

    display: grid;
    grid-template-columns: 45px 1fr auto;
    align-items: center;
    column-gap: 8px;
}

.faq_item--header > span{
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 0.5);

    transition: all .3s;
}

.faq_item--header > img{
    margin-left: auto;
    transform: rotate(0deg);
    transition: all .3s;
}

.phone_menu{
    position: fixed;
    top: 76px;
    width: calc(100% - 16px);   
    background-color: white;
    border-radius: 16px;
    left: 8px;
    height: calc(100vh - 96px);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transform: translateX(-110%);
    transition: all .3s;
}

.phone_menu ul{
    flex-direction: column;
    width: 100%;
}

.phone_menu ul li{
    width: 100%;
}

.phone_menu_open{
    overflow: hidden;
}

body.phone_menu_open .phone_menu{
    transform: translateX(0%);
}

.lottie_animation{
    position: absolute;
    width: 250px;
    opacity: .5;
}

.lottie_animation#heart{
    bottom: 32px;
    left: 64px;
}

.lottie_animation#form{
    top: 32px;
    right: -200px;
}

.lottie_animation#stars_left{
    left: -250px;
}

.lottie_animation#stars_right{
    right: -250px;
    bottom: -32px;
}

.form_error {
    background-color: #ffe5e5;
    color: #b30000;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.form_success {
    background-color: #e8f8ec;
    color: #2d8a34;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-weight: 500;
}

  .cookie-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, #2c5f5f 0%, #1a4444 100%);
            color: white;
            padding: 20px;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            z-index: 9999;
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .cookie-banner.show {
            transform: translateY(0);
        }

        .cookie-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .cookie-text {
            flex: 1;
            font-size: 14px;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.95);
        }

        .cookie-text strong {
            color: #cae8e7;
            font-weight: 600;
        }

        .cookie-text a {
            color: #cae8e7;
            text-decoration: underline;
            transition: color 0.2s ease;
        }

        .cookie-text a:hover {
            color: white;
        }

        .cookie-buttons {
            display: flex;
            gap: 12px;
            flex-shrink: 0;
        }

        .cookie-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 100px;
            position: relative;
            overflow: hidden;
        }

        .cookie-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .cookie-btn:hover::before {
            left: 100%;
        }

        .cookie-btn.accept {
            background: #28a745;
            color: white;
            border: 2px solid transparent;
        }

        .cookie-btn.accept:hover {
            background: #218838;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        }

        .cookie-btn.reject {
            background: transparent;
            color: rgba(255, 255, 255, 0.9);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .cookie-btn.reject:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.5);
            color: white;
            transform: translateY(-1px);
        }

        .cookie-btn:active {
            transform: translateY(0);
        }

        /* Icon pentru cookie */
        .cookie-icon {
            width: 24px;
            height: 24px;
            margin-right: 12px;
            opacity: 0.8;
            flex-shrink: 0;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .cookie-banner {
                padding: 16px;
            }

            .cookie-content {
                flex-direction: column;
                gap: 16px;
                text-align: center;
            }

            .cookie-text {
                font-size: 13px;
            }

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

            .cookie-btn {
                flex: 1;
                min-width: auto;
                max-width: 140px;
            }
        }

        @media (max-width: 480px) {
            .cookie-buttons {
                flex-direction: column;
                gap: 8px;
            }

            .cookie-btn {
                max-width: none;
            }
        }

        /* Animație pentru text */
        .cookie-text {
            animation: fadeInUp 0.6s ease-out 0.2s both;
        }

        .cookie-buttons {
            animation: fadeInUp 0.6s ease-out 0.4s both;
        }

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

        /* Style pentru când banner-ul se închide */
        .cookie-banner.hiding {
            animation: slideDown 0.4s ease-in forwards;
        }

        @keyframes slideDown {
            to {
                transform: translateY(100%);
            }
        }

@media (max-width: 1680px){
    section{
        width: 1440px;
    }
}

@media (max-width: 1440px){
    section{
        width: 100%;
    }

    .fitW{
        width: 100%;
        max-width: 1264px;
    }

    .lottie_animation{
        display: none;
    }
}   


@media (max-width: 1264px){
    nav > ul{
        display: none;
    }

    

    .phone_btn{
        display: block;
    }

    h1{
        font-size: 48px;   
        line-height: 48px;
    }

    .section_p{
        font-size: 18px;
    }
    
    #appointment_holder img{
        width: 100%;
        max-width: 400px;
    }

    footer{
        width: 100%;
        gap: 32px;
    }
}

@media (max-width: 960px){
    section.split{
        grid-template-columns: 1fr;
        row-gap: 36px;
    }

    section.split.half{
        grid-template-columns: 1fr;
    }

    section.split.reverse{
        grid-template-columns: 1fr;
    }

    .fitw{
        max-width: 720px;
    }

    #main_section{
        grid-template-rows: auto 1fr;
        height: 1000px !important;
    }

    .section_p{
        margin-top: 16px;
    }


}


@media (max-width: 600px){
    nav{
        justify-content: space-between;
        flex-wrap: wrap;
        row-gap: 16px;
    }

    .phone_menu{
        top: 128px;
        height: calc(100vh - 154px);
    }

    nav .special_link{
        flex-basis: 100%;
        justify-content: center;
    }
    
    .fitW{
        max-width: 100%;
    }

    section{
        margin-top: 24px !important;
        padding: 16px 8px;
    }

    .special_link{
        font-size: 18px;
    }

    .form_row.split{
        grid-template-columns: 1fr;
    }

    form{
        row-gap: 0px;
    }

    form .btn.main{
        margin-top: 16px;
    }
}