@charset "UTF-8"; *, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: Roboto, Arial, sans-serif;
    /* font-family: robotics; */
    font-size: 12pt;
    line-height: 1.5em;
    /* letter-spacing: -1px; */
}
ul, li, summary {
    list-style: none;
    /* list-style-type:none; */
}
#page-contact summary {
    color: #a9dfdf;
    font-size: 1.2em;
    /* margin-bottom: 10px; */
    padding-left: 5px;
}
.contact {
    list-style: none;
    padding-left: unset;
    /* font-family: monospace; */
    user-select: none;
    background-color: #3b3b3b;
    color: white;
    margin: 3px 0px;
}

#page-contact #specialist,
#page-contact #dateTime,
#page-contact #dress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px;
    border-radius: 10px;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
    padding: 4px 8px;
}

/* Иконка слева и «карандаш» справа прижаты к краям, текст — по центру */
#page-contact .div-icon,
#page-contact .div-pic {
    flex: 0 0 auto;
}
#page-contact .div-content {
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
}

.div-icon {
    height: 34px;
    border-radius: 50%;
    padding: 5px;
    background-color: #8d8d8d;
}

/* Заполненное обязательное поле — подтверждающий вид */
#page-contact .field-filled {
    box-shadow: 0 0 0 1px rgba(169, 223, 223, 0.55) inset;
    background-color: rgba(169, 223, 223, 0.10);
}
#page-contact .field-filled .div-content {
    color: #cdeeee;
    font-weight: 600;
}
/* Подсветка незаполненного обязательного поля (приоритетнее filled) */
#page-contact .field-invalid {
    box-shadow: 0 0 0 2px #e5484d inset;
    background-color: rgba(229, 72, 77, 0.12);
}
#page-contact .field-invalid .div-content {
    color: #ffd7d8;
    font-weight: 600;
}

/* Сообщение об ошибке валидации формы */
.contact-error {
    color: #ffd7d8;
    background-color: #b3282c;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 10px auto 0;
    text-align: center;
    font-size: 0.95em;
    max-width: 320px;
}

#page-contact ul li {
    border-bottom: 1px dotted #c2bcbc;
}
.div-content {
    flex-grow: 1;
}
.contact li > div  {
    margin: 10px;
}
.contact li > span {
    font-weight: 600;
    margin-left: 5px;
}
form input, form textarea, form button {
    border-radius: 5px;
    display: block;
    /* width: 90%; */
    font-size: 1.5em;
}
input:required:user-invalid {
    border-color: red;
}
label {
    display: block;
}

button {
    margin-top: 10px;
    font-weight: 600;
    background-color: #5a6575;
    color: #a9dfdf;
    padding: 5px
}

/* ---------- Форма записи ---------- */
#form-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 10px 12px;
}
#form-contact label {
    font-size: 0.9em;
    color: #a9dfdf;
    /* margin-top: 6px; */
}
#form-contact input,
#form-contact textarea {
    width: 100%;
    font-size: 1.05em;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #5a6575;
    background-color: #2f2f2f;
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#form-contact input::placeholder,
#form-contact textarea::placeholder {
    color: #8f9aa3;
}
#form-contact input:focus,
#form-contact textarea:focus {
    border-color: #a9dfdf;
    box-shadow: 0 0 0 2px rgba(169, 223, 223, 0.25);
}
#form-contact textarea {
    resize: vertical;
    min-height: 90px;
}
#page-contact #form-contact button[type="submit"] {
    display: block;
    margin: 14px auto 0;
    width: 100%;
    max-width: 280px;
    font-size: 1.15em;
    font-weight: 700;
    color: #10312f;
    background-color: #a9dfdf;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.05s ease;
}
#page-contact #form-contact button[type="submit"]:hover {
    filter: brightness(1.08);
}
#page-contact #form-contact button[type="submit"]:active {
    transform: translateY(1px);
}

span.record-status {
    color: #adc6db;
    background-color: #1d75c1;
    display: block;
    text-align: center;
}

#contact-market span {
    overflow-wrap: break-word;
    display: inline-block;
    white-space:pre;
    max-width: 300px;
}
.record-wait {
    display: none;
}
.page-active .record-wait {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #a9dfdf;
}

.record-wait p {
    margin: unset;
}

.wait-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.wait-btn {
    font-size: 0.95em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: filter 0.15s ease;
}
.wait-btn:hover { filter: brightness(1.08); }
.wait-btn--modify { background: #5a6575; color: #a9dfdf; }
.wait-btn--cancel { background: #b3282c; color: #ffd7d8; }

ul.contact {
    padding-left: 5px;
}

.record-wait p span {
    color: rgb(116, 192, 252);
}

@media (min-width: 768px) {
    #page-contact.page-active {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
        right: 0;
        padding: 16px;
    }
    #page-contact form input,
    #page-contact form textarea {
        width: 100%;
    }
    #page-contact button[type="submit"] {
        width: 100%;
        max-width: 280px;
    }
}
