body {
    background-color: #f0f4f8;
    /* Unifică fontul sans-serif modern pentru toate elementele paginii */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 40px;
}
h1 {
    color: #007acc;
}
.spatiu-lucru {
    /* 1. Dimensiuni */
    max-width: 1000px;         /* Lățimea maximă a casetei */
    min-height: 1300px;        /* Înălțimea minimă */

    /* 2. Culori și Chenar */
    background-color: transparent;
    border: 2px solid #000000fd; /* Chenar albastru de 2 pixeli */
    border-radius: 8px;        /* Colțuri rotunjite (opțional) */

    /* 3. Distanțare (Diferența esențială) */
    padding: 20px;            /* Spațiul din interior (între text și chenar) */
    margin: 40px auto;        /* Spațiul din exterior. "auto" centrează caseta pe ecran */

    /* 4. Umbră (Efect vizual modern) */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: -20px -20px 0;
    width: calc(100% + 40px);
    box-sizing: border-box;
    background-image: url("Herastrau3.jpeg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 20px;
    min-height: 200px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.title-row h2 {
    font-size: 2em;
    margin-top: -1cm;
}

.title-row img {
    max-height: 120px;
    max-width: 25%;
    width: auto;
    transform: translateX(-4cm);
}

.buttons-row {
    display: flex;
    justify-content: space-between;
    gap: 0;
    align-items: center;
    background-color: #000000;
    padding: 0 2cm;
    border-radius: 0;
    flex-wrap: nowrap;
    width: calc(100% + 40px);
    margin: 0 -20px 0;
    box-sizing: border-box;
}

.buttons-row button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit; /* Moștenește fontul sans-serif */
}

.buttons-row button:hover {
    background-color: #FFD400;
    color: #ffffff;
}

.spatiu-lucru hr {
    border: none;
    height: 2px;
    background-color: #000000;
    width: calc(100% + 40px);
    margin: 0 -20px 0;
}

.spatiu-lucru hr.secondary-separator {
    margin-top: 0;
}

/* =======================================================
   STILURI GENERALE ȘI FUNDAL (Valabile pe Calculator / PC)
   ======================================================= */
.content-area {
    background-image: url("calinfdp-cloudiness-1341635_1920.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: calc(100% + 40px);
    flex-grow: 1;
    margin: 0 -20px -20px; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* CONTAINERUL CENTRAL FORMULAR: Rămâne neschimbat pe PC */
.contact-panel {
    max-width: 750px; 
    width: 90%; 
    margin: 40px auto; 
    background-color: rgba(255, 255, 255, 0.95); 
    padding: 40px; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.contact-form input,
.contact-form textarea {
    box-sizing: border-box !important;
}

.contact-panel h1 {
    color: #333333;
    text-align: left;
    margin: 0;
}

.contact-panel p {
    text-align: left;
    margin: 0.8rem 0 1.4rem 0;
    line-height: 1.6;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #000000;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    margin-top: 0.4rem;
    padding: 0.8rem;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 0.9rem 1.8rem;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form button:hover {
    background-color: #ffd400;
    color: #000000;
}

/* Footer Section Styling */
footer {
    position: relative;
    z-index: 10;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    margin-top: 0; 
    background-color: #000000;
    padding: 15px 2cm;
    box-sizing: border-box;
}

.spatiu-lucru hr.footer-separator {
    background-color: #ffffff;
    height: 1px;
    margin: 0 0 15px 0;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #ffffff;
}

.footer-links p {
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: #FFD400;
    text-decoration: underline;
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    text-align: left;
    flex: 1;
    min-width: 300px;
    line-height: 1.5;
}

.cookie-content a {
    color: #FFD400;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: inherit;
}

.btn-cookie-accept {
    background-color: #FFD400;
    color: #000000;
}

.btn-cookie-accept:hover {
    background-color: #e0bb00;
}

.btn-cookie-refuse {
    background-color: #d9534f;
    color: #ffffff;
}

.btn-cookie-refuse:hover {
    background-color: #c9302c;
}

.btn-cookie-manage {
    background-color: #555555;
    color: #ffffff;
}

.btn-cookie-manage:hover {
    background-color: #444444;
}

/* =======================================================
   OPTIMIZARE STRICTĂ PENTRU MOBIL (Ecrane sub 768px)
   ====================================================== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important; 
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body {
        padding: 10px !important; 
    }

    .spatiu-lucru {
        margin: 10px auto !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .title-row {
        flex-direction: column !important;
        padding: 15px !important;
        min-height: auto !important;
        width: calc(100% + 20px) !important;
        margin: -10px -10px 0 !important;
    }

    .title-row img {
        transform: none !important; 
        max-height: 80px !important;
        margin-bottom: 10px;
    }

    .title-row h2 {
        font-size: 1.4em !important;
        margin-top: 0 !important;
    }

    .content-area {
        width: calc(100% + 20px) !important; 
        margin: 0 -10px -10px !important; 
        padding: 20px 10px !important; 
    }

    .contact-panel {
        max-width: 92% !important;
        width: 92% !important;
        margin: 15px auto !important; 
        padding: 25px 20px !important; 
    }

    .contact-form {
        display: flex !important;
        flex-direction: column !important; 
        gap: 15px !important; 
        width: 100% !important;
    }

    .contact-form label {
        display: flex !important;
        flex-direction: column !important; 
        width: 100% !important;
        gap: 5px !important;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100% !important; 
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-form button {
        width: 100% !important; 
        justify-self: stretch !important;
    }

    .buttons-row {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;    
        justify-content: center !important;
        gap: 8px !important;
        padding: 15px !important;
        width: calc(100% + 20px) !important;
        margin: 0 -10px 0 !important;
    }
    
    .buttons-row button {
        display: block !important;
        width: 100% !important; 
        max-width: 280px !important; 
        padding: 12px !important;
        text-align: center !important;
    }

    footer {
        width: calc(100% + 20px) !important;
        margin-left: -10px !important;
        margin-right: -10px !important;
        margin-bottom: -10px !important;
        padding: 15px 1rem !important;
    }
    .footer-links {
        flex-direction: column !important;
        text-align: center !important;
    }
    .legal-links {
        justify-content: center !important;
        gap: 10px !important;
    }
    .cookie-content {
        flex-direction: column !important;
        text-align: center !important;
    }
.cookie-content p {text-align: center !important;}}