/* =========================
   CONTAINER
   ========================= */
#lemondent-programare {
    max-width: 1100px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* TITLU */
#lemondent-programare h3 {
    margin-bottom: 20px;
}

/* =========================
   LABELS (GLOBAL – inputuri)
   ========================= */
#lemondent-programare label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

/* =========================
   INPUTURI
   ========================= */
#lemondent-programare input,
#lemondent-programare select,
#lemondent-programare textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-top: 4px;
}

#lemondent-programare textarea {
    min-height: 120px;
    resize: vertical;
}

/* =========================
   GRID
   ========================= */
.ld-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.ld-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.ld-grid > div,
.ld-grid-2 > div {
    display: flex;
    flex-direction: column;
}

.ld-full {
    grid-column: 1 / -1;
}

/* =========================
   GDPR – FIX FINAL (ELEMENTOR SAFE)
   ========================= */
.ld-gdpr {
    grid-column: 1 / -1;
    width: 100%;
    margin: 20px 0;
}

/* aici anulăm display:block de mai sus */
#lemondent-programare .ld-gdpr-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
    margin: 0;
    text-align: left !important;
}

/* checkbox */
#lemondent-programare .ld-gdpr-label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* text */
#lemondent-programare .ld-gdpr-label span {
    display: inline;
}

/* link */
#lemondent-programare .ld-gdpr-label a {
    color: #c9a24d;
    text-decoration: underline;
}

/* =========================
   BUTON
   ========================= */
#ld_submit {
    background: #d8a441;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

#ld_submit:hover {
    background: #c08d2f;
}

#ld_msg {
    margin-top: 10px;
    font-weight: 600;
}

/* =========================
   DATEPICKER
   ========================= */
.ui-datepicker {
    z-index: 99999 !important;
}

#ld_data {
    background-color: #fff !important;
    cursor: pointer;
}
.ld-location {
    margin-bottom: 12px;
}

.ld-loader {
    width: 36px;
    height: 36px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #c9a400; /* gold LemonDent */
    border-radius: 50%;
    animation: ld-spin 1s linear infinite;
    margin: 0 auto 6px;
}

@keyframes ld-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================
   🔐 LOGIN MEDIC – GENERAL
   ========================= */
.ld-login-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

/* input + buton */
.ld-login-wrapper input,
.ld-login-wrapper button {
    width: 100%;
    box-sizing: border-box;
}

/* spațiere desktop */
.ld-login-wrapper label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 500;
}

/* =========================
   📱 LOGIN MEDIC – MOBILE
   ========================= */
@media (max-width: 768px) {

    .ld-login-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}


    .ld-login-wrapper h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .ld-login-wrapper input {
        height: 44px;
        font-size: 16px;
    }

    #ld_login_btn {
        margin-top: 18px;
        padding: 12px 0;
        font-size: 16px;
    }

    #ld_login_msg {
        margin-top: 12px;
        text-align: center;
    }
}

/* =========================
   MODAL PROGRAMARE
   ========================= */

.ld-btn-warning {
    background: linear-gradient(135deg, #C9A400, #FFD700);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.ld-btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.ld-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    justify-content: space-between;
}

.ld-modal-actions button {
    flex: 1;
}

.ld-btn-warning:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ld-modal-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.ld-modal-box label {
    font-weight: 600;
    display: block;
    margin-top: 12px;
}

.ld-modal-box input,
.ld-modal-box textarea {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
}


.ld-btn-primary {
    background: #d8a441;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

.ld-btn-secondary {
    background: #eee;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}
/* ==========================================
   FIX DEFINITIV ASTRA STICKY HEADER + MODAL
========================================== */

/* când modalul e deschis */
body.ld-modal-open #mysticky-wrap,
body.ld-modal-open #mysticky-nav,
body.ld-modal-open header#masthead {
    position: static !important;
    top: auto !important;
    z-index: 1 !important;
}


/* blocăm scroll */
body.ld-modal-open {
    overflow: hidden;
}

/* ===============================
   FIX MODAL PESTE HEADER
================================ */
#ldModalEdit {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
}

/* cutia modalului */
#ldModalEdit > div {
    background: #fff;
    width: 92%;
    max-width: 420px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* ==========================================
   FIX ASTRA STICKY HEADER CÂND MODALUL E DESCHIS
========================================== */

body.ld-modal-open #mysticky-wrap,
body.ld-modal-open #mysticky-nav,
body.ld-modal-open header,
body.ld-modal-open header#masthead,
body.ld-modal-open .site-header {
    position: static !important;
    top: auto !important;
    z-index: 1 !important;
}


body.ld-modal-open {
    overflow: hidden;
}


/* =========================
   TABS
========================= */
.ld-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
}

.ld-tab {
    flex: 1;
    padding: 8px;
    border: none;
    background: #eee;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
}

.ld-tab.active {
    background: #d8a441;
    color: #fff;
}

/* =========================
   TAB CONTENT
========================= */
.ld-tab-content {
    display: none;
}

.ld-tab-content.active {
    display: block;
}

/* =========================
   FORM GRID (ca DevExpress)
========================= */
.ld-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}


/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px) {
    .ld-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .ld-grid,
    .ld-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* =========================
   🔐 LOGIN MEDIC – IZOLARE
   ========================= */
#ld-medic-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

