/* SRV-CORE — Submit ticket / support request (portal)
 * Scoped to .srvcore-support-page
 */

body:has(.srvcore-support-page) {
    background: #f8fafc !important;
}

body:has(.srvcore-support-page) #main-body > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: var(--srvcore-nav-content-inset, clamp(1rem, 3vw, 2.5rem)) !important;
    padding-right: clamp(1rem, 3vw, 2.5rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body:has(.srvcore-support-page) #main-body > .container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body:has(.srvcore-support-page) .primary-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

body:has(.srvcore-support-page) .header-lined {
    display: none !important;
}

.srvcore-support-page {
    --srvcore-support-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --srvcore-support-text: #5e636e;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem 0 3rem;
}

.srvcore-support-page .srvcore-support-form,
.srvcore-support-page .srvcore-support-card {
    width: 100%;
    max-width: 100%;
}

.srvcore-support-page .srvcore-support-hero {
    text-align: left;
    margin-bottom: 1.5rem;
}

.srvcore-support-page .srvcore-support-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.625rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--brand-heading, #17191c);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.srvcore-support-page .srvcore-support-lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--srvcore-support-text);
}

.srvcore-support-page .srvcore-support-card {
    background: #fff;
    border: 1px solid var(--brand-border, #e8eaed) !important;
    border-radius: var(--brand-radius, 0.75rem) !important;
    box-shadow: var(--srvcore-support-shadow);
    overflow: hidden;
}

.srvcore-support-page .srvcore-support-card .card-body {
    padding: 1.75rem 1.5rem !important;
}

.srvcore-support-page .srvcore-support-card .card-title {
    display: none;
}

.srvcore-support-page .alert {
    border-radius: 0.625rem;
    margin-bottom: 1.25rem;
}

.srvcore-support-page .form-group {
    margin-bottom: 1.125rem;
}

.srvcore-support-page .form-group > label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-heading, #17191c);
}

.srvcore-support-page .form-control,
.srvcore-support-page .custom-select,
.srvcore-support-page select.form-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--brand-border, #e8eaed) !important;
    border-radius: var(--brand-radius, 0.75rem) !important;
    font-size: 1rem !important;
    color: var(--brand-heading, #17191c);
    box-shadow: none !important;
}

.srvcore-support-page textarea.form-control {
    min-height: 10rem;
    padding: 0.875rem 1rem;
    line-height: 1.5;
    resize: vertical;
}

.srvcore-support-page .form-control:focus,
.srvcore-support-page select.form-control:focus {
    border-color: var(--brand-primary, #1062fe) !important;
    box-shadow: 0 0 0 3px rgba(16, 98, 254, 0.12) !important;
}

.srvcore-support-page .form-control.disabled,
.srvcore-support-page .form-control:disabled {
    background: #f8fafc;
    color: var(--brand-muted, #64748b);
}

.srvcore-support-page .srvcore-support-form .row {
    margin-left: -0.625rem;
    margin-right: -0.625rem;
}

.srvcore-support-page .srvcore-support-form .row > [class*="col-"] {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.srvcore-support-page .srvcore-support-attachments {
    margin-bottom: 1.125rem;
}

.srvcore-support-page .srvcore-support-attachment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.srvcore-support-page .attachment-group {
    margin-bottom: 0;
    width: 100%;
    max-width: 36rem;
}

.srvcore-support-page .attachment-group .custom-file {
    width: 100%;
    min-height: 48px;
}

.srvcore-support-page .custom-file-label {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    border: 1px solid var(--brand-border, #e8eaed);
    border-radius: var(--brand-radius, 0.75rem);
    font-size: 0.9375rem;
    color: var(--brand-muted, #64748b);
}

.srvcore-support-page .custom-file-label::after {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 1.125rem;
    border-left: 1px solid var(--brand-border, #e8eaed);
    border-radius: 0 calc(var(--brand-radius, 0.75rem) - 1px) calc(var(--brand-radius, 0.75rem) - 1px) 0;
    background: #f8fafc;
    color: var(--brand-heading, #17191c);
    font-size: 0.875rem;
    font-weight: 600;
}

.srvcore-support-page .custom-file-input:focus ~ .custom-file-label {
    border-color: var(--brand-primary, #1062fe);
    box-shadow: 0 0 0 3px rgba(16, 98, 254, 0.12);
}

.srvcore-support-page .custom-file-input:focus ~ .custom-file-label::after {
    border-color: var(--brand-primary, #1062fe);
}

.srvcore-support-page .srvcore-support-add-attachment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    min-height: 44px;
    padding: 0.5rem 1.125rem !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: var(--brand-radius, 0.75rem) !important;
    background: #fff !important;
    color: var(--brand-primary, #1062fe) !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1.2;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.srvcore-support-page .srvcore-support-add-attachment:hover,
.srvcore-support-page .srvcore-support-add-attachment:focus {
    background: #eef2ff !important;
    border-color: #93c5fd !important;
    border-style: solid !important;
    color: var(--brand-primary, #1062fe) !important;
    box-shadow: none !important;
}

.srvcore-support-page .srvcore-support-add-attachment i {
    font-size: 0.8125rem;
}

.srvcore-support-page .text-muted small,
.srvcore-support-page .form-text.text-muted {
    font-size: 0.8125rem;
    color: var(--brand-muted, #64748b) !important;
}

.srvcore-support-page .srvcore-support-captcha {
    margin: 1.5rem 0 1.25rem;
    text-align: left;
}

.srvcore-support-page .srvcore-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    margin: 0;
    padding-top: 0.25rem;
}

.srvcore-support-page .srvcore-support-btn,
.srvcore-support-page .srvcore-support-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.625rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: var(--brand-radius, 0.75rem) !important;
}

.srvcore-support-page .srvcore-support-btn {
    min-width: 9rem;
}

.srvcore-support-page .srvcore-support-btn-secondary {
    min-width: 9rem;
    border: 1px solid var(--brand-border, #e8eaed) !important;
    color: var(--brand-heading, #17191c) !important;
    background: #fff !important;
}

.srvcore-support-page .srvcore-support-btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: var(--brand-heading, #17191c) !important;
    text-decoration: none;
}

/* Step 1 — department list */
.srvcore-support-page .srvcore-support-dept-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.srvcore-support-page .srvcore-support-dept-item {
    margin-bottom: 0.75rem;
}

.srvcore-support-page .srvcore-support-dept-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--brand-border, #e8eaed);
    border-radius: var(--brand-radius, 0.75rem);
    background: #fff;
    color: var(--brand-heading, #17191c);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.srvcore-support-page .srvcore-support-dept-link:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
    color: var(--brand-primary, #1062fe);
    box-shadow: 0 2px 8px rgba(16, 98, 254, 0.08);
}

.srvcore-support-page .srvcore-support-dept-link i {
    color: var(--brand-primary, #1062fe);
    font-size: 1.125rem;
}

.srvcore-support-page .srvcore-support-dept-desc {
    margin: 0.375rem 0 0 2.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--srvcore-support-text);
}

@media (max-width: 767.98px) {
    .srvcore-support-page {
        padding: 1rem 0 2rem;
    }

    .srvcore-support-page .srvcore-support-card .card-body {
        padding: 1.25rem 1rem !important;
    }

    .srvcore-support-page .srvcore-support-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .srvcore-support-page .srvcore-support-btn,
    .srvcore-support-page .srvcore-support-btn-secondary {
        width: 100%;
        min-width: 0;
    }

    .srvcore-support-page .attachment-group {
        max-width: 100%;
    }

    .srvcore-support-page .srvcore-support-add-attachment {
        width: 100%;
    }
}
