/**
 * =============================================================================
 * @encoding UTF-8
 * @author [Сетевые бизнес технологии](//netbis.ru)
 * @project [Авиценна - Стоматологическая клиника](//avicenamc.ru)
 * @summary Стили подвала и модальных окон
 * @created 2025-01
 * @modified 2025-01
 *
 * @remarks Вынесенные inline-стили из includes/footer.php
 * ============================================================================
 */

/* =========================================
   Утилиты (бывшие в теге style)
   ========================================= */
.w-4 { width: 1rem; height: 1rem; }
.w-5 { width: 1.25rem; height: 1.25rem; }
.w-6 { width: 1.5rem; height: 1.5rem; }
.w-10 { width: 2.5rem; height: 2.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.text-dental-green-footer { color: var(--dental-green-footer); }
.text-gray-300 { color: #cbd5e0; }
.text-gray-400 { color: #cbd5e0; }
.text-gray-600 { color: #718096; }
.hover\:text-gray-600:hover { color: #718096; }

.flex-row-center { display: flex; align-items: center; }
.flex-row-start { display: flex; align-items: flex-start; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 0.5rem; }

/* Для модальных окон */
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.bg-black { background-color: black; }
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-white { background-color: white; }
.rounded-lg { border-radius: 0.5rem; }
.p-6 { padding: 1.5rem; }
.max-w-2xl { max-width: 42rem; }
.w-full { width: 100%; }
.max-h-screen { max-height: 100vh; }
.overflow-y-auto { overflow-y: auto; }

/* Сетка для первого блока футера на больших экранах */
@media (min-width: 1024px) {
    .footer-wide-col {
        grid-column: span 2;
    }
}

/* =========================================
   Стили Footer
   ========================================= */
.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.footer-section-title {
    color: var(--dental-green-footer);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-social-title {
    color: var(--dental-green-footer);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-contact-text {
    margin: 0;
    font-size: 0.9rem;
}

.footer-contact-link {
    margin: 0;
    font-size: 0.9rem;
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--dental-green-light);
}

.footer-schedule {
    font-size: 0.9rem;
}

.footer-schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.footer-schedule-weekend {
    color: #f87171;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-copyright {
    margin: 0;
}

.footer-developer {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: #718096;
}

.footer-developer-link {
    display: inline;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-link {
    display: inline;
}

/* Кнопка "Наверх" */
#scroll-to-top {
    background-color: var(--dental-green-footer);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

#scroll-to-top:hover {
    background-color: var(--dental-green-footer-hover);
}

.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }

/* =========================================
   Стили модальных окон
   ========================================= */
.modal-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    max-width: 42rem;
    width: 100%;
    padding: 1.5rem;
    position: relative;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.modal-error {
    display: none;
    background-color: #fee2e2;
    border: 1px solid #f87171;
    color: #b91c1c;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.modal-success {
    display: none;
    background-color: #dcfce7;
    border: 1px solid #4ade80;
    color: #15803d;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    resize: none;
}

.form-submit-btn {
    width: 100%;
    background-color: var(--dental-green);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit-btn:hover {
    background-color: var(--dental-green-hover);
}

.form-submit-btn:disabled {
    opacity: 0.5;
}

.form-error-msg {
    color: red;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.border-red-500 {
    border-color: #ef4444 !important;
}

.text-red-500 {
    color: #ef4444;
}

.license-modal-content {
    background: white;
    border-radius: 0.5rem;
    max-width: 56rem;
    width: 100%;
    padding: 1.5rem;
    position: relative;
}

.license-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
