/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
}
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    /* prevent content from being blocked by bottom nav */
    padding-bottom: 80px;
    background: #f0f2f5;
}

/* Hero Section */
.hero {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23009944" fill-opacity="1" d="M0,160L1440,320L1440,0L0,0Z"></path></svg>') no-repeat;
    background-size: cover;
    text-align: center;
    padding: 60px 20px;
    /* extra bottom padding so image stays above floating menu */
    padding-bottom: 100px;
}

/* Image container for hero image with rectangular box */
.hero-image-container {
    position: relative;
    display: inline-block;
    max-width: 300px;
    margin: 0 auto 30px;
    background: #fff;
    padding: 10px;
    border: 2px solid #009944;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-image-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Overlay text on hero image */
.hero-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    width: 90%;
}

.hero-text h1 {
    font-size: 2rem;
    margin: 0;
}

.hero-text p {
    font-size: 0.9rem;
    margin: 3px 0 0;
    opacity: 0.9;
}

/* Ticket Container */
.ticket-container {
    background: #fff;
    max-width: 600px;
    margin: -50px auto 40px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}
.ticket-container h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Form Styles */
#ticketForm {
    display: none;
    margin-top: 20px;
}
#ticketForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}
#ticketForm input[type="text"],
#ticketForm select,
#ticketForm input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
}
#ticketForm input[type="text"] {
    height: 40px;
}
#title {
    width: 90%;
    max-width: 400px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #28a745;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
    appearance: none; /* Hides default arrow in some browsers */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2328a745' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin: 10px auto;
    display: block;
}

#title:focus {
    border-color: #00cc66;
    box-shadow: 0 0 12px rgba(0, 204, 102, 0.5);
}

#ticketForm input[type="file"] {
    padding: 8px;
    background: #fff;
    cursor: pointer;
}
#ticketForm input:focus,
#ticketForm select:focus,
#ticketForm input[type="file"]:focus {
    border-color: #009944;
    box-shadow: 0 0 0 3px rgba(0,153,68,0.2);
    outline: none;
}

#ticketForm button {
    width: 100%;
    padding: 14px;
    text-transform: uppercase;
    background: #009944;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}
#ticketForm button:hover {
    background: #007a33;
}
#raiseTicketBtn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 10px #28a745, 0 0 20px #28a745;
    transition: all 0.3s ease;
}

#raiseTicketBtn:hover {
    background-color: #218838;
    box-shadow: 0 0 15px #00ff66, 0 0 25px #00ff66, 0 0 35px #00ff66;
    transform: scale(1.05);
}


/* Recent Queries */
.recent-queries {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
.recent-queries h2 {
    margin-bottom: 15px;
}
.query {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}
.query-left {
    display: flex;
    align-items: center;
}
.query-number {
    width: 30px;
    height: 30px;
    display: flex;
    background: #009944;
    color: #fff;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    font-weight: bold;
}
.query-info div {
    margin-bottom: 4px;
}
.status {
    font-weight: bold;
}
