.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.contact-modal--open {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.contact-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.contact-modal__container {
    position: relative;
    width: 100%;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.contact-modal--open .contact-modal__container {
    transform: translateY(0);
}

.contact-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
}

.contact-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.contact-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-modal__close:hover {
    background: #e5e5e5;
}

.contact-modal__close svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

.contact-modal__context {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f0fdf4;
    border-bottom: 1px solid #bbf7d0;
    font-size: 14px;
    color: #166534;
}

.contact-modal__context svg {
    width: 20px;
    height: 20px;
    fill: #22c55e;
    flex-shrink: 0;
}

.contact-modal__context strong {
    color: #15803d;
}

.contact-modal__form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-modal__label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.contact-modal__input,
.contact-modal__textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.contact-modal__input:focus,
.contact-modal__textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.contact-modal__textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-modal__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.contact-modal__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.contact-modal__submit svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Info o přihlášeném uživateli */
.contact-modal__user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
}

.contact-modal__user-info svg {
    width: 20px;
    height: 20px;
    fill: #6b7280;
    flex-shrink: 0;
}

/* Checkbox - dotaz se týká psa */
.contact-modal__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-modal__checkbox:hover {
    background: #dcfce7;
}

.contact-modal__checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.contact-modal__checkbox-mark {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 2px solid #22c55e;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.contact-modal__checkbox-mark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.contact-modal__checkbox input:checked + .contact-modal__checkbox-mark {
    background: #22c55e;
}

.contact-modal__checkbox input:checked + .contact-modal__checkbox-mark::after {
    opacity: 1;
}

.contact-modal__checkbox-text {
    font-size: 14px;
    color: #166534;
    line-height: 1.5;
    padding-top: 1px;
}

.contact-modal__checkbox-text strong {
    color: #15803d;
}

/* Checkbox odškrtnutý - šedý styl */
.contact-modal__checkbox:has(input:not(:checked)) {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.contact-modal__checkbox:has(input:not(:checked)) .contact-modal__checkbox-mark {
    border-color: #d1d5db;
}

.contact-modal__checkbox:has(input:not(:checked)) .contact-modal__checkbox-text {
    color: #6b7280;
}

.contact-modal__checkbox:has(input:not(:checked)) .contact-modal__checkbox-text strong {
    color: #374151;
}

.contact-modal__user-info strong {
    color: #1f2937;
}

/* Nepřihlášený uživatel - výzva k přihlášení */
.contact-modal__login-required {
    padding: 32px 20px;
    text-align: center;
}

.contact-modal__login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 50%;
}

.contact-modal__login-icon svg {
    width: 32px;
    height: 32px;
    fill: #8b5cf6;
}

.contact-modal__login-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.contact-modal__login-text {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

.contact-modal__login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-modal__login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.contact-modal__login-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-modal__login-btn--primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.contact-modal__login-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.contact-modal__login-btn--secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.contact-modal__login-btn--secondary:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

/* KONTAKTNÍ MODAL - TABLET */
@media (min-width: 600px) {
    .contact-modal {
        align-items: center;
        padding: 20px;
    }

    .contact-modal__container {
        max-width: 500px;
        max-height: 85vh;
        border-radius: 20px;
        transform: translateY(30px) scale(0.95);
    }

    .contact-modal--open .contact-modal__container {
        transform: translateY(0) scale(1);
    }

    .contact-modal__header {
        padding: 24px 24px 20px;
    }

    .contact-modal__title {
        font-size: 22px;
    }

    .contact-modal__context {
        padding: 16px 24px;
    }

    .contact-modal__form {
        padding: 24px;
        gap: 18px;
    }

    .contact-modal__input,
    .contact-modal__textarea {
        padding: 14px 16px;
    }

    .contact-modal__login-required {
        padding: 40px 24px;
    }

    .contact-modal__login-title {
        font-size: 20px;
    }

    .contact-modal__login-text {
        font-size: 15px;
    }
}

/* KONTAKTNÍ MODAL - DESKTOP */
@media (min-width: 900px) {
    .contact-modal__container {
        max-width: 520px;
    }

    .contact-modal__header {
        padding: 28px 28px 20px;
    }

    .contact-modal__title {
        font-size: 24px;
    }

    .contact-modal__context {
        padding: 16px 28px;
        font-size: 15px;
    }

    .contact-modal__form {
        padding: 28px;
    }

    .contact-modal__label {
        font-size: 15px;
    }

    .contact-modal__submit {
        padding: 18px 28px;
        font-size: 17px;
    }

    .contact-modal__login-required {
        padding: 48px 28px;
    }

    .contact-modal__login-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 24px;
    }

    .contact-modal__login-icon svg {
        width: 36px;
        height: 36px;
    }

    .contact-modal__login-title {
        font-size: 22px;
    }

    .contact-modal__login-text {
        font-size: 15px;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-modal__login-btn {
        padding: 16px 28px;
        font-size: 16px;
    }
}

/* ========================================
   KONTAKTNÍ MODAL - NOVÉ PRVKY
   Mobile First
   ======================================== */

/* Hlavička - rozšířená verze s názvem stanice */
.contact-modal__header-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-modal__station {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

/* Sekce s fotkou psa a info */
.contact-modal__dog-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #f8f7ff 0%, #f3f1ff 100%);
    border: 1px solid #e9e5ff;
    border-radius: 12px;
}

.contact-modal__dog-photo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.contact-modal__dog-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-modal__dog-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-modal__dog-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.contact-modal__dog-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    word-wrap: break-word;
}

.contact-modal__dog-breed {
    font-size: 13px;
    color: #6b7280;
}

.contact-modal__dog-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.contact-modal__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-modal__status-dot--available {
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.contact-modal__status-dot--reserved {
    background-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.contact-modal__status-dot--unavailable {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.contact-modal__status-text {
    font-size: 12px;
    font-weight: 600;
    color: #166534;
}

/* Textarea wrapper s nápovědou */
.contact-modal__textarea-wrapper {
    position: relative;
}

.contact-modal__hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #92400e;
}

.contact-modal__hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #f59e0b;
    margin-top: 1px;
}

/* Tlačítko pro přílohy */
.contact-modal__attachments {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-modal__attachment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-modal__attachment-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.contact-modal__attachment-btn:active {
    background: #e5e7eb;
}

.contact-modal__attachment-btn svg {
    width: 20px;
    height: 20px;
}

.contact-modal__attachment-hint {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
}

/* Náhled přidaných souborů */
.contact-modal__files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-modal__file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.contact-modal__file-preview {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #e5e7eb;
}

.contact-modal__file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-modal__file-preview--document {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.contact-modal__file-preview--document svg {
    width: 24px;
    height: 24px;
    color: #8b5cf6;
}

.contact-modal__file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-modal__file-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-modal__file-size {
    font-size: 11px;
    color: #9ca3af;
}

.contact-modal__file-remove {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.contact-modal__file-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

.contact-modal__file-remove svg {
    width: 16px;
    height: 16px;
}

/* Upravené tlačítko odeslat - ikona vpravo */
.contact-modal__submit {
    flex-direction: row;
}

.contact-modal__submit svg {
    order: 2;
}

/* ========================================
   KONTAKTNÍ MODAL - NOVÉ PRVKY - TABLET
   ======================================== */
@media (min-width: 600px) {
    .contact-modal__station {
        font-size: 14px;
    }

    .contact-modal__dog-info {
        padding: 16px;
        gap: 16px;
    }

    .contact-modal__dog-photo {
        width: 72px;
        height: 72px;
    }

    .contact-modal__dog-name {
        font-size: 16px;
    }

    .contact-modal__dog-breed {
        font-size: 14px;
    }

    .contact-modal__hint {
        padding: 12px 14px;
        font-size: 13px;
    }

    .contact-modal__attachment-btn {
        padding: 14px 18px;
    }
}

/* ========================================
   KONTAKTNÍ MODAL - NOVÉ PRVKY - DESKTOP
   ======================================== */
@media (min-width: 900px) {
    .contact-modal__dog-info {
        padding: 18px;
        gap: 18px;
    }

    .contact-modal__dog-photo {
        width: 80px;
        height: 80px;
        border-radius: 12px;
    }

    .contact-modal__dog-label {
        font-size: 13px;
