/* ── Homepage ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #001f5b;
    color: #ffffff;
    min-height: 100vh;
}

.home-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    position: relative;
}

.home-clock {
    position: fixed;
    top: 18px;
    right: 22px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0.6;
}

.home-content {
    width: 100%;
    max-width: 960px;
}

/* Hero */
.home-hero {
    text-align: center;
    margin-bottom: 28px;
}

.home-logo-img {
    width: 240px;
    max-width: 80vw;
    height: auto;
    display: block;
    margin: 0 auto 8px;
}

/* Two panels */
.home-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.home-panel {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 26px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-panel-hdr {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.home-panel-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.home-panel-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.home-panel-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-top: 3px;
}

/* Shared input */
.home-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    padding: 9px 12px;
    outline: none;
    font-family: inherit;
    height: 36px;
}

.home-input:focus {
    border-color: rgba(255,255,255,0.45);
    background: rgba(0,0,0,0.4);
}

.home-input::placeholder { color: rgba(255,255,255,0.26); }

input[type="date"].home-input,
input[type="time"].home-input { color-scheme: dark; }

/* Labels */
.home-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 5px;
}

.home-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Autocomplete */
.home-ac-wrap { position: relative; }

.home-dropdown {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    background: #001a50;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 6px;
    z-index: 200;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

.home-drop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 13px;
    gap: 8px;
}

.home-drop-item:last-child { border-bottom: none; }
.home-drop-item:hover,
.home-drop-item.active     { background: rgba(255,255,255,0.1); }

.home-drop-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-drop-crs  { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: rgba(255,255,255,0.33); flex-shrink: 0; }

/* Form layout helpers */
.home-form { display: flex; flex-direction: column; gap: 10px; }

.home-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.home-field-row--narrow {
    grid-template-columns: 1fr 1fr;
}

.home-field { display: flex; flex-direction: column; }

/* Buttons */
.home-btn {
    display: block;
    width: 100%;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    border: none;
    transition: filter 0.15s;
}

.home-btn--primary {
    background: linear-gradient(180deg, #1466d6 0%, #0c56bf 100%);
    color: #fff;
}

.home-btn--primary:hover  { filter: brightness(1.1); }
.home-btn--primary:active { filter: brightness(0.92); }

/* Quick links */
.home-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-ql {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.home-ql:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .home-panels { grid-template-columns: 1fr; }
    .home-logo-img { width: 170px; }
    .home-clock  { font-size: 17px; top: 13px; right: 13px; }
}

@media (max-width: 440px) {
    .home-wrap        { padding: 20px 12px; }
    .home-panel       { padding: 20px 16px 18px; }
    .home-logo-img { width: 150px; }
    .home-hero        { margin-bottom: 20px; }
    .home-field-row   { grid-template-columns: 1fr; }
}
