/* ===== Profile modal (világos, 2 oszlop, görgethető test) ===== */
/* Csak a #profileModal-t érinti, más modálok változatlanok maradnak. */

#profileModal .modal__dialog {
    max-width: 960px;
    max-height: 90vh;
    width: min(92vw, 960px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    /* világos háttér */
    color: #849daa;
    /* sötét szöveg */
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

#profileModal .modal__body {
    overflow: auto;
    /* csak a test görget */
    padding: 12px 16px;
    background: #fff;
}

/* Két oszlop: mobilon 1, ≥900px-en 2 */
#profileModal .profile-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    #profileModal .profile-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Form elemek – világos */
#profileModal .form-row {
    margin-bottom: 10px;
}

#profileModal .form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #217597;
}

#profileModal input,
#profileModal textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 10px;
    background: #fff;
    color: #252a36;
}

#profileModal input:focus,
#profileModal textarea:focus {
    outline: 2px solid #7dd3fc;
    /* a designod accentje */
    border-color: transparent;
}

#profileModal .form-error {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 10px;
}

/* Jelszó „szem” gomb elhelyezés */
#profileModal .pw-wrap {
    position: relative;
}

#pf_toggle_pw {
    border-radius: 8px;
    line-height: 1;
}

/* Lábléc – csak layout, a gombok a style.css .btn színeit öröklik */
#profileModal .modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

/* Foglalás-kártyák – világos, letisztult */
#profileModal .bookings-list {
    display: block;
}

#profileModal .booking-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

#profileModal .booking-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 24, 40, .10);
    border-color: #d1d5db;
}

#profileModal .booking-title {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #849daa;
}

#profileModal .booking-when {
    color: #374151;
    font-size: .95rem;
}

#profileModal .booking-loc {
    color: #6b7280;
    font-size: .9rem;
    margin-top: 2px;
}

#profileModal .booking-status {
    display: inline-block;
    margin-top: 8px;
    font-size: .8rem;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 4px 8px;
    border-radius: 999px;
}

/* Overlay árnyalat kicsit finomabb */
#profileModal[aria-hidden="false"] {
    background: rgba(0, 0, 0, .35);
}