﻿.contact-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px;
}

.contact-hero {
    background: linear-gradient(135deg, #0f6adf, #0a56ba);
    color: #f5f9ff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.20);
    margin-bottom: 24px;
}

.contact-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    margin-bottom: 8px;
}

.contact-hero h1 {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.1;
}

.contact-hero p {
    margin: 0;
    max-width: 680px;
    color: rgba(255,255,255,0.86);
    line-height: 1.6;
}

.contact-card {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

    .form-field label {
        font-size: 13px;
        font-weight: 700;
        color: #243243;
    }

.form-control {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 15px;
    color: #243243;
    background: rgba(255,255,255,0.92);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

    .form-control:focus {
        border-color: #1677ff;
        box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.14);
    }

.textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #1677ff, #0f62d6);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    box-shadow: 0 10px 24px rgba(22, 119, 255, 0.25);
}

    .btn-primary:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(22, 119, 255, 0.32);
    }

    .btn-primary:disabled {
        opacity: .65;
        cursor: not-allowed;
    }

.contact-alert {
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 600;
}

    .contact-alert.success {
        border-left: 5px solid #16a34a;
        background: rgba(22, 163, 74, 0.10);
        color: #166534;
    }

    .contact-alert.error {
        border-left: 5px solid #ef4444;
        background: rgba(239, 68, 68, 0.10);
        color: #991b1b;
    }

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.validation-message {
    font-size: 13px;
    color: #ef4444;
}

.requests-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.requests-hero {
    background: linear-gradient(135deg, #0f6adf, #0a56ba);
    color: #f5f9ff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.20);
    margin-bottom: 24px;
}

.requests-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    margin-bottom: 8px;
}

.requests-hero h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    line-height: 1.1;
}

.requests-hero p {
    margin: 0;
    color: rgba(255,255,255,0.86);
}

.requests-card {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
}

.requests-toolbar {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.request-item {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-left: 5px solid #1677ff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

    .request-item.status-0 {
        border-left-color: #1677ff;
    }

    .request-item.status-1 {
        border-left-color: #f59e0b;
    }

    .request-item.status-2 {
        border-left-color: #16a34a;
    }

    .request-item.status-3 {
        border-left-color: #ef4444;
    }

.request-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.request-title {
    font-size: 18px;
    font-weight: 800;
    color: #243243;
}

.request-meta {
    font-size: 13px;
    color: #5f7288;
    margin-top: 4px;
}

.request-badges {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(22, 119, 255, 0.10);
    color: #0f62d6;
}

    .badge.priority {
        background: rgba(245, 158, 11, 0.12);
        color: #92400e;
    }

.request-message {
    color: #243243;
    line-height: 1.6;
    white-space: pre-wrap;
    margin: 10px 0 12px 0;
}

.request-phone {
    font-size: 14px;
    color: #5f7288;
    margin-bottom: 14px;
}

.request-edit-grid {
    display: grid;
    grid-template-columns: 180px 180px 1fr;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

    .form-field label {
        font-size: 13px;
        font-weight: 700;
        color: #243243;
    }

.form-control {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    color: #243243;
    background: rgba(255,255,255,0.95);
    outline: none;
}

    .form-control:focus {
        border-color: #1677ff;
        box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.14);
    }

    .form-control.small {
        max-width: 220px;
    }

.note-area {
    min-height: 88px;
    resize: vertical;
}

.btn-secondary {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    color: #243243;
    background: rgba(255,255,255,0.78);
    cursor: pointer;
}

.request-footer {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #5f7288;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 10px;
}

.empty-state {
    padding: 28px;
    text-align: center;
    color: #5f7288;
}

.request-alert.error {
    border-left: 5px solid #ef4444;
    background: rgba(239, 68, 68, 0.10);
    color: #991b1b;
    border-radius: 18px;
    padding: 14px 16px;
}

.contact-ticket-list {
    margin-top: 16px;
}

.contact-ticket-card {
    border-left: 5px solid #1677ff;
}

    .contact-ticket-card.status-0 {
        border-left-color: #1677ff;
    }

    .contact-ticket-card.status-1 {
        border-left-color: #f59e0b;
    }

    .contact-ticket-card.status-2 {
        border-left-color: #16a34a;
    }

    .contact-ticket-card.status-3 {
        border-left-color: #ef4444;
    }

.contact-message-box {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #243243;
}

.contact-note-area {
    min-height: 130px;
    resize: vertical;
}

.mobile-record-list.contact-ticket-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

    .mobile-record-list.contact-ticket-list .mobile-record-card {
        display: block !important;
    }

.contact-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-comment-item {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    padding: 12px 14px;
}

.contact-comment-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #5f7288;
    margin-bottom: 8px;
}

    .contact-comment-header strong {
        color: #243243;
    }

.contact-comment-message {
    white-space: pre-wrap;
    line-height: 1.55;
    color: #243243;
}

.contact-privacy {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #243243;
}

    .privacy-checkbox input {
        margin-top: 0.25rem;
        flex-shrink: 0;
    }

    .privacy-checkbox a {
        color: #1677ff;
        font-weight: 700;
        text-decoration: underline;
    }

@media (max-width: 900px) {
    .contact-page {
        padding: 16px;
    }

    .contact-hero {
        padding: 22px;
    }

        .contact-hero h1 {
            font-size: 30px;
        }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-actions {
        justify-content: stretch;
    }

    .btn-primary {
        width: 100%;
    }

    .requests-page {
        padding: 16px;
    }

    .requests-hero h1 {
        font-size: 30px;
    }

    .request-header,
    .requests-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .request-badges {
        justify-content: flex-start;
    }

    .request-edit-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-control.small {
        max-width: none;
    }
    .contact-ticket-list {
        grid-template-columns: 1fr;
    }

    .mobile-record-list.contact-ticket-list {
        grid-template-columns: 1fr;
    }
}
