/* Body */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    background: linear-gradient(-45deg, #6A0572, #A66CFF, #2E2E2E, #6A0572);
    background-size: 400% 400%;
    animation: gradientAnim 15s ease infinite;
    overflow-x: hidden;
}

@keyframes gradientAnim {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Container general */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 6rem 2rem 4rem;
}

/* Intro text */
.intro-servicii {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-servicii h1 {
    font-size: 3rem;
    background: linear-gradient(45deg, #A66CFF, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-servicii p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Acordeon Servicii */
.accordion-servicii {
    margin-bottom: 4rem;
}

.accordion-item {
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.accordion-header {
    width: 100%;
    background: none;
    color: #fff;
    text-align: left;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.accordion-header:hover {
    box-shadow: 0 0 8px rgba(166, 108, 255, 0.4);
}

.accordion-body {
    display: none;
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-item.active .accordion-body {
    display: block;
}

.accordion-item.active .accordion-header {
    background-color: rgba(255, 255, 255, 0.1);
    color: #A66CFF;
}

.accordion-body p {
    margin-bottom: 1rem;
}

.accordion-header::after {
    content: '\f107';
    /* Font Awesome arrow down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

/* Buton Solicita */
.btn-solicita {
    position: relative;
    display: inline-block;
    padding: 0.8em 1.8em;
    margin-top: 1rem;
    color: #fff;
    background-color: transparent;
    border: 2px solid #A66CFF;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    transition: color 0.4s ease, background-color 0.4s ease;
}

.btn-solicita::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: #A66CFF;
    z-index: -1;
    transition: width 0.4s ease;
    border-radius: 30px;
}

.btn-solicita:hover {
    color: #000;
}

.btn-solicita:hover::before {
    width: 100%;
}

/* Pachete */
.pachete-servicii {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
    justify-content: center;
}

.pachet-card {
    background: linear-gradient(145deg, rgba(106, 5, 114, 0.15), rgba(166, 108, 255, 0.15));
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-backdrop-filter: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pachet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: scale(1.03);
}

.pachet-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #A66CFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.pachet-card h3 i {
    font-size: 1.5rem;
    color: #A66CFF;
}

.pachet-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.pachet-card ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.pachet-card .pret {
    font-weight: bold;
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.pachet-card:nth-child(4) {
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .pachet-card {
        width: 100%;
    }
}

/* ===== POPUP FORMULAR ===== */

/* Pop-up formular */
#formularPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: 4px;
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#formularPopup.active {
    display: flex;
    opacity: 1;
}

.ascuns {
    display: none;
}

/* Formularul din pop-up */
.popup-content {
    background: #1e1e2f;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: popupZoom 0.5s ease forwards;
}

/* Animație zoom pentru pop-up */
@keyframes popupZoom {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.form-serviciu,
.multumesc {
    background: #1e1e2f;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    width: 90%;
    max-width: 450px;
    animation: fadeIn 0.4s ease;
}

.popup-content h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #fff;
}

.popup-content input,
.popup-content textarea {
    width: calc(100% - 2rem);
    margin: 0 auto 1rem auto;
    padding: 0.75rem 1rem;
    display: block;
    border: none;
    border-radius: 8px;
    background: #2E2E2E;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

.popup-content textarea {
    resize: none;
}

.popup-content button[type="submit"],
.popup-content button[type="button"] {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #6A0572, #A66CFF);
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Inputuri și textarea */
.form-serviciu input,
.form-serviciu textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: #2E2E2E;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Butoane formular */
.form-serviciu button[type="submit"],
.form-serviciu button[type="button"],
.multumesc button {
    padding: 0.7rem 1.5rem;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #6A0572, #A66CFF);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.form-serviciu button:hover,
.multumesc button:hover {
    background: linear-gradient(45deg, #A66CFF, #6A0572);
    transform: scale(1.05);
}

/* Animație Fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Efect de hover pe butoanele din formular */
.popup-content button[type="submit"]:hover {
    background: linear-gradient(45deg, #A66CFF, #6A0572);
    transform: scale(1.05);
}

.popup-content button[type="button"]:hover {
    background: linear-gradient(45deg, #A66CFF, #6A0572);
    transform: scale(1.05);
}

.motivatie-moonarttitude {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: 4px;
    backdrop-filter: blur(4px);
    animation: fadeIn 1s ease;
}

.motivatie-moonarttitude h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #A66CFF;
}

.motivatie-moonarttitude p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    color: #f0f0f0;
}

.lista-beneficii {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.lista-beneficii li {
    font-size: 1.1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.lista-beneficii i {
    color: #A66CFF;
    font-size: 1.3rem;
}

/*-- Loader animat -- */

#loader-wrapper {
    position: fixed;
    inset: 0;
    background: linear-gradient(-45deg, #6A0572, #A66CFF, #2E2E2E, #6A0572);
    background-size: 400% 400%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: gradientAnim 15s ease infinite;
    transition: opacity 0.6s ease;
}

.loader-logo {
    width: 100px;
    height: auto;
    opacity: 0;
    animation: fadeInZoom 0.7s ease forwards;
}

@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}
