/* =============================================== */
/*                     HEADER                     */
/* =============================================== */
.hero-container {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    z-index: 10;
}

.hero-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: filter 0.5s ease;
    filter: brightness(0.6);
    /* Imagine mai întunecată inițial */
}

.hero-container:hover .hero-img {
    filter: brightness(1);
    /* Revine la luminozitate normală la hover */
}

.hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Overlay mai subtil */
    transition: opacity 0.5s ease;
    opacity: 1;
}

.hero-container:hover .hero-img-overlay {
    opacity: 0;
    /* Overlay dispare la hover */
}

.hero-container h1 {
    font-family: 'Montserrat', sans-serif;
    background-color: #fbbf24;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-container {
        height: 30vh;
    }

    .hero-img {
        filter: brightness(0.5);
        /* Mai întunecat pe mobile */
    }
}

/* =============================================== */
/*                  TIPOGRAFIE                    */
/* =============================================== */
main {
    font-family: 'Montserrat', sans-serif;
}

#niveluri {
    font-family: 'Montserrat', sans-serif;
}

nav {
    font-family: 'Montserrat', sans-serif;
}

/* =============================================== */
/*                CARDURI NIVELURI                */
/* =============================================== */
.card-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    height: 200px;
    /* Fixed height for consistency */
}

.card-bg {
    background-size: cover;
    background-position: center;
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: filter 0.3s ease;
    filter: brightness(0.7);
}

.card-container:hover .card-bg {
    filter: brightness(1);
}

.text-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.text-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.text-content p {
    color: #e6ac1a;
    font-weight: 600;
    opacity: 1;
    transition: all 0.3s ease;
}

.card-container:hover .text-content h3 {
    opacity: 0;
    transform: translateY(-10px);
}

.card-container:hover .text-content p {
    font-size: 1.2rem;
    transform: scale(1.1);
}

/* =============================================== */
/*                  TERMS MODAL                   */
/* =============================================== */
.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.terms-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.terms-modal-container {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 3px solid #fbbf24;
    /* Orange border to match site */
}

.terms-modal-header {
    background-color: #fbbf24;
    /* Orange header to match navbar */
    padding-bottom: 0.5rem;
    text-align: center;
    border-bottom: 3px solid #d8a420;
    /* Darker orange border */
}

.terms-modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #1e293b;
    /* Dark blue text to match footer */
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.terms-modal-content {
    padding: 0 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #f8fafc;
    /* Light blue background */
    color: #1e293b;
    /* Dark blue text to match footer */
}

.terms-modal-content>*:first-child {
    padding-top: 1.5rem;
}

.terms-modal-content h3 {
    color: #f59e0b;
    /* Orange headings */
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.terms-modal-content p {
    margin-bottom: 1rem;
}

.terms-modal-footer {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    background-color: #1e293b;
    /* Dark blue background to match footer */
    border-top: 3px solid #fbbf24;
    /* Orange border to match site */
    padding-bottom: 1rem;
}

.terms-accept-btn {
    background-color: #fbbf24;
    /* Orange button to match navbar */
    color: #1e293b;
    /* Dark blue text to match footer */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    border: 2px solid #d8a420;
    /* Darker orange border */
}

.terms-accept-btn:hover {
    background-color: #e6ac1a;
    /* Darker orange on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.terms-accept-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scrollbar styling to match design */
.terms-modal-content::-webkit-scrollbar {
    width: 8px;
}

.terms-modal-content::-webkit-scrollbar-track {
    background: #e2e8f0;
}

.terms-modal-content::-webkit-scrollbar-thumb {
    background-color: #fbbf24;
    border-radius: 4px;
}

.terms-modal-content::-webkit-scrollbar-thumb:hover {
    background-color: #e6ac1a;
}

/* TERMS MODAL STYLES */
.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.terms-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.terms-modal-container {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.terms-modal-header {
    background-color: #fbbf24;
    padding: 1.5rem;
    text-align: center;
}

.terms-modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #000;
    margin: 0;
}

.terms-modal-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

.terms-modal-footer {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    background-color: #f5f5f5;
}

.terms-accept-btn {
    background-color: #fbbf24;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.terms-accept-btn:hover {
    background-color: #e6ac1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

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

.highlight-box {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
    margin: 30px 0;
}



/* Adăugări pentru optimizare mobil - păstrează tot codul existent */
@media (max-width: 767px) {
    .terms-modal-header h2 {
        font-size: 1.4rem;
        /* Titlu mai mic pe mobil */
        padding: 0.5rem;
    }

    .terms-modal-content {
        padding: 1rem 0.8rem;
        /* Puțin mai strâns pe mobil */
        font-size: 0.95rem;
        /* Text ușor mai mic */
    }

    .terms-modal-content h3 {
        font-size: 1.1rem;
        /* Heading-uri mai mici */
        margin-bottom: 0.8rem;
    }

    .terms-modal-content p {
        margin-bottom: 1.2rem;
        /* Mai mult spațiu între paragrafe */
        line-height: 1.5;
        /* Spațiere mai bună a rândurilor */
    }

    .terms-accept-btn {
        padding: 0.7rem 1.2rem;
        /* Buton mai compact */
        font-size: 0.9rem;
        /* Text buton mai mic */
        min-height: auto;
        /* Elimină înălțimea fixă */
    }

    .terms-modal-container {
        max-height: 85vh;
        /* Puțin mai mică înălțimea maximă */
    }
}

/* Adăugăm această regulă la sfârșitul fișierului CSS, fără a șterge nimic existent */
@media (max-width: 767px) {
    .terms-modal-content {
        max-height: 65vh !important;
        /* Mărim zona scrollabilă */
        padding-right: 8px;
        /* Adăugăm puțin padding pentru scrollbar */
        padding: 0 0.8rem;
    }

    .terms-modal-content>*:first-child {
        padding-top: 1rem;
    }

    .terms-modal-container {
        max-height: 90vh !important;
        /* Mărim containerul total */
    }
}

@media (min-width: 768px) {
    .terms-modal-content {
        max-height: 70vh !important;
        /* Mărim și pe desktop */
    }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f59e0b;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #e6900b;
    transform: translateY(-3px);
}

.seo-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

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

.benefit-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.cta-button {
    background: linear-gradient(135deg, #f59e0b, #ecc94b);
    color: #1a202c;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #ecc94b, #f59e0b);
}

.highlight {
    background: linear-gradient(120deg, #fef3c7, #fffbeb);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    background: #e6fffa;
    color: #234e52;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin: 0.25rem;
    font-size: 0.875rem;
}

/* =============================================== */
/*              BUTOANE FROSTED GLASS              */
/* =============================================== */
.frosted-glass-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 200px;
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Efect frosted glass modernizat */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 4px 8px rgba(0, 0, 0, 0.1);

    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.frosted-glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px) scale(1.03);
}

/* Imaginea de fundal - optimizată */
.frosted-glass-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7) contrast(1.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);

    /* Adăugăm un blur subtil pentru a accentua efectul */
    transform: scale(1.05);
}

.frosted-glass-card:hover .card-bg {
    filter: brightness(0.8) contrast(1.2);
    transform: scale(1.08);
}

/* Strat suplimentar pentru efect de "frost" */
.frosted-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Textul - optimizat pentru contrast */
.frosted-glass-card .text-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 1.5rem;
    transition: all 0.4s ease;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(0, 0, 0, 0.3);
}

.frosted-glass-card .text-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.frosted-glass-card .text-content p {
    color: #fbbf24;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.5),
        0 0 8px rgba(0, 0, 0, 0.3);
}

/* Efect de "shine" modernizat */
.frosted-glass-card:hover::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.08) 45%,
            rgba(255, 255, 255, 0) 55%,
            rgba(255, 255, 255, 0.05) 100%);
    transform: rotate(30deg);
    animation: shine 3.5s infinite;
    opacity: 0.7;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-25%) rotate(30deg);
    }

    20% {
        transform: translateX(100%) translateY(25%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) translateY(25%) rotate(30deg);
    }
}

/* Border glow effect */
.frosted-glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0) 50%,
            rgba(255, 255, 255, 0.15) 100%);
    background-clip: padding-box;
    z-index: 1;
    pointer-events: none;
}

.frosted-glass-card:hover::after {
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .frosted-glass-card {
        width: 280px;
        height: 180px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .frosted-glass-card .text-content h3 {
        font-size: 1.5rem;
    }

    .frosted-glass-card .text-content p {
        font-size: 1rem;
    }

    .frosted-glass-card .card-bg {
        filter: brightness(0.65) contrast(1.05);
    }
}

.benefit-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Added subtle border */
    position: relative;
    /* For the hover effect */
    overflow: hidden;
    /* For the hover effect */
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Enhanced shadow on hover */
    border-color: rgba(0, 0, 0, 0.12);
    /* Slightly darker border on hover */
}

/* Optional: Add a subtle glow effect on hover */
.benefit-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    opacity: 0.7;
}

.benefit-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
    position: relative;
    /* Keeps text above any pseudo-elements */
    z-index: 1;
    /* Keeps text above any pseudo-elements */
}