:root {
    --bg-main: #fcfcfc;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-body: #475569;
    --text-light: #94a3b8;
    --accent: #1e293b;
    --accent-soft: #f1f5f9;
    --border: #e2e8f0;
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background: #f8fafc;
    font-family: var(--font-body);
    color: var(--text-body);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.query-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.query-card {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: var(--shadow-premium);
    text-align: center;
    position: relative;
    border: 1px solid var(--border);
}

/* Home Button Inside Card (Top Left) */
.btn-home-icon {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 36px;
    height: 36px;
    background: var(--accent-soft);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-home-icon:hover {
    background: var(--border);
    transform: scale(1.05);
}

/* Login/Forgot Password Style Icon */
.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 15px;
}

.query-card h1 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 1.75rem;
    margin: 0 0 8px 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.query-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 32px;
    font-weight: 500;
}

.form-group {
    text-align: left;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
}

.input-wrapper input {
    width: 100%;
    padding: 13px 15px 13px 48px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-query {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.btn-query:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

.btn-center-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-narrow {
    width: auto !important;
    min-width: 200px;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

/* Results View */
.query-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.query-tab {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.query-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.result-header {
    text-align: center;
    margin-bottom: 24px;
}

.service-item {
    text-align: left;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.service-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

/* Accordion Row Header */
.service-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.service-row-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.service-row-chevron {
    color: var(--text-light);
    font-size: 0.8rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.service-item.is-open .service-row-chevron {
    transform: rotate(180deg);
}

/* Accordion Detail Body */
.service-detail-body {
    display: none;
    padding: 0 20px 18px;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.2s ease-out;
}

.service-item.is-open .service-detail-body {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.service-summary-box {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}

.summary-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.summary-row span {
    color: var(--text-light);
}

.summary-row strong {
    color: var(--text-dark);
    font-weight: 600;
}

.complaint-box {
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-body);
    margin-bottom: 12px;
    border-left: 3px solid var(--border);
}

.service-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-body);
    margin-top: 10px;
}

.query-footer-copy {
    text-align: center;
    margin-top: 24px;
    font-size: 0.75rem;
    color: var(--text-light);
}

#error-message {
    background: #fffafa;
    color: #e11d48;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    display: none;
    font-weight: 500;
    border: 1px solid #fee2e2;
}

@media (max-width: 480px) {
    .query-card {
        padding: 40px 24px;
        border-radius: 24px;
    }
}
