/* =========================================================
   osTicket Modern Client Theme
   Open Ticket Page
   ========================================================= */

/* ---------- Base ---------- */

body {
    background: #f3f6fb;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: #111827;
}

/* ---------- Page Header ---------- */

h1 {
    max-width: 860px;
    margin: 40px auto 8px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}

h1 + p {
    max-width: 860px;
    margin: 0 auto 24px;
    font-size: 16px;
    line-height: 1.5;
    color: #6b7280;
}

/* =========================================================
   HEADER
   ========================================================= */

#header {
    max-width: 1180px;
    margin: 24px auto 16px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-sizing: border-box;
	height: auto;
}

/* régi floatok kikapcsolása */

#header .pull-left,
#header .pull-right,
#nav.flush-left {
    float: none !important;
}

/* =========================================================
   LOGO
   ========================================================= */

#logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

#header #logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* =========================================================
   USER MENU
   ========================================================= */

#header .flush-right p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6b7280;
}

#header .flush-right a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

#header .flush-right a:hover {
    text-decoration: underline;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

#nav {
    max-width: 1180px;
	height: auto;
    margin: 0 auto 24px;
    padding: 10px 14px;
    list-style: none;

    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);

    box-sizing: border-box;
    overflow: visible;
}

/* reset */

#nav li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

/* links */

#nav li a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 16px;

    border-radius: 10px;

    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;

    line-height: 1;
    box-sizing: border-box;
}

/* hover */

#nav li a:hover {
    background: #f3f4f6;
    color: #111827;
}

/* active */

#nav li a.active,
#nav li .active,
#nav li a[href*="open.php"] {
    background: #e0ecff;
    color: #1d4ed8;
}

#nav li a.home,
#nav li a.new,
#nav li a.tickets {
    background-image: none !important;
    padding-left: 16px !important;
}

/* =========================================================
   REMOVE OLD CLEAR DIV
   ========================================================= */

.clear {
    display: none;
}

/* =========================================================
   CONTENT
   ========================================================= */

#content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 40px;
    box-sizing: border-box;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    #header {
        padding: 0 16px;
        gap: 16px;
    }

    #logo {
        width: 100%;
        justify-content: center;
    }

    #header .flush-right {
        width: 100%;
    }

    #header .flush-right p {
        justify-content: center;
    }

    #nav {
        margin: 0 16px 24px;
        padding: 10px;
        display: grid;
        grid-template-columns: 1fr;
    }

    #nav li a {
        justify-content: center;
        width: 100%;
    }

    #content {
        padding: 0 16px 32px;
    }
}

/* ---------- Main Form Card ---------- */

#ticketForm {
    max-width: 860px;
    margin: 0 auto 50px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

/* ---------- Table Layout Reset ---------- */

#ticketForm > table {
    width: 100% !important;
    border: 0;
}

#ticketForm > table,
#ticketForm > table > tbody,
#ticketForm > table > tbody > tr,
#ticketForm > table > tbody > tr > td {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* ---------- Sections ---------- */

#ticketForm > table > tbody {
    margin-bottom: 28px;
}

#ticketForm tr {
    margin-bottom: 20px;
}

#ticketForm td {
    padding: 0;
}

/* ---------- Labels ---------- */

#ticketForm td:first-child:not([colspan]) {
    margin-bottom: 8px;
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

/* ---------- Section Header ---------- */

#ticketForm .form-header {
    margin: 0 0 14px !important;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

/* ---------- Divider ---------- */

#ticketForm hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 28px 0;
}

/* ---------- Inputs ---------- */

#ticketForm input[type="text"],
#ticketForm input[type="email"],
#ticketForm input[type="tel"],
#ticketForm input[type="password"],
#ticketForm input[type="file"],
#ticketForm select,
#ticketForm textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    color: #111827;
    font-size: 15px;
    line-height: 1.4;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
    box-sizing: border-box;
}

/* ---------- Textarea ---------- */

#ticketForm textarea {
    min-height: 160px;
    resize: vertical;
}

/* ---------- Focus State ---------- */

#ticketForm input:focus,
#ticketForm select:focus,
#ticketForm textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* ---------- Placeholder ---------- */

#ticketForm input::placeholder,
#ticketForm textarea::placeholder {
    color: #9ca3af;
}

/* ---------- Help Topic ---------- */

#topicId {
    cursor: pointer;
}

/* ---------- Buttons ---------- */

#ticketForm .buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

#ticketForm .buttons input {
    min-width: 150px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        background 0.15s ease;
}

/* ---------- Primary Button ---------- */

#ticketForm .buttons input[type="submit"] {
    background: #2563eb;
    color: #ffffff;
}

/* ---------- Secondary Buttons ---------- */

#ticketForm .buttons input[type="reset"],
#ticketForm .buttons input[type="button"] {
    background: #f3f4f6;
    color: #111827;
}

/* ---------- Hover ---------- */

#ticketForm .buttons input:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

/* ---------- Active ---------- */

#ticketForm .buttons input:active {
    transform: translateY(0);
}

/* ---------- Error Messages ---------- */

#ticketForm td {
    position: relative;
}

#ticketForm font.error {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;

    display: inline-block;
    margin: 0;

    color: #dc2626;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

#ticketForm .required {
    color: #dc2626;
}
/* ---------- Captcha ---------- */

#ticketForm .captchaRow img {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    margin-right: 12px;
}

#ticketForm .captchaRow em {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
}

/* ---------- Links ---------- */

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------- Dynamic Forms ---------- */

#dynamic-form {
    width: 100%;
}

/* ---------- Rich Text Editor ---------- */

.redactor-box,
.redactor-editor {
    border-radius: 12px !important;
}

/* ---------- File Upload ---------- */

input[type="file"] {
    padding: 10px;
    background: #f9fafb;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {

    h1 {
        margin: 24px 16px 8px;
        font-size: 28px;
    }

    h1 + p {
        margin: 0 16px 20px;
        font-size: 15px;
    }

    #ticketForm {
        margin: 0 16px 32px;
        padding: 20px;
        border-radius: 16px;
    }

    #ticketForm .buttons {
        display: block;
    }

    #ticketForm .buttons input {
        width: 100%;
        margin-bottom: 10px;
    }
}