@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&family=Luckiest+Guy&family=Poppins:wght@700&display=swap');

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

:root {
    --primary: #22313f;
    --secondary: #4f8cff;
    --accent: #ff8c6b;
    --light: #f5f6fa;
    --gray: #95a5a6;
    --dark: #182c3a;
    --success: #2ecc71;
    --warning: #f39c12;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    min-height: 100vh;
    height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(120deg, #e0eafc 0%, #cfdef3 100%);
    color: var(--primary);
    overflow-x: hidden;
    /* Prevent vertical scroll on body */
    overflow-y: hidden;
}
.animated-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -99;
    background: radial-gradient(circle at 20% 30%, #a1c4fd80 0%, #c2e9fb80 60%, transparent 100%);
    animation: bgMove 18s ease-in-out infinite alternate;
}
@keyframes bgMove {
    0% { background-position: 20% 30%; }
    100% { background-position: 80% 70%; }
}
.container {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.glass-card {
    background: rgba(255,255,255,0.55);
    box-shadow: 0 10px 42px 0 rgba(31, 38, 135, 0.13);
    border-radius: 20px;
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    max-width: 480px;
    width: 100%;
    height: auto;
    border: 1.5px solid rgba(255,255,255,0.32);
    backdrop-filter: blur(10px) saturate(160%);
    position: relative;
    animation: fadeIn 0.6s cubic-bezier(.54,.34,.35,1.21);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98) translateY(18px);}
    to { opacity: 1; transform: scale(1) translateY(0);}
}
.logo-center-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.0rem;
}
.logo-center-box img {
    width: 125px;
    max-width: 180px;
    height: auto;
    margin-bottom: 0.3rem;
    display: block;
}

/* --- ICONIC HEADER & ANIMASI MASKOT --- */
.animated-bounce {
    animation: bounceIn 1.8s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes bounceIn {
    0% { transform: scale(0.8) translateY(-40px); opacity: 0; }
    55% { transform: scale(1.1) translateY(10px); opacity: 1;}
    70% { transform: scale(0.95) translateY(-8px);}
    100% { transform: scale(1) translateY(0);}
}
.big-title.iconic-title {
    font-family: 'Luckiest Guy', 'Montserrat', Arial, sans-serif;
    font-size: 2.7rem;
    letter-spacing: 0.05em;
    color: #26334A;
    text-align: center;
    font-weight: 900;
    text-shadow: 0 5px 20px #4f8cff24, 0 2px 0 #fff, 1px 1px 0 #b7c9e7;
    margin-bottom: 0.32rem;
    margin-top: 0.1rem;
    line-height: 1.04;
}
.highlight-si {
    color: #53b8ff;
    letter-spacing: 0.01em;
    filter: drop-shadow(0 1px 8px #92eaff33);
}
.highlight-pipit {
    color: #2ecc71;
    letter-spacing: 0.01em;
    filter: drop-shadow(0 1px 8px #a8fca333);
}

/* --- TAGLINE GRADIENT & ANIMATED --- */
.system-title.animated-gradient-text {
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.8rem;
    margin-top: 0.05rem;
    background: linear-gradient(90deg, #4375ff 30%, #31d293 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 8px #b4e5fd33);
    letter-spacing: 0.01em;
    animation: gradient-flow 2.8s linear infinite alternate;
}
@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* --- END ICONIC HEADER --- */

.big-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1.5px;
    margin: 0;
    text-align: center;
    text-shadow: 0 3px 12px #4f8cff26;
}
.long-desc {
    font-size: 1.16rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0.18rem 0 0.5rem 0;
    text-align: center;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 10px #c2e9fb22;
}
.hospital-desc {
    font-size: 1.10rem;
    color: var(--dark);
    text-align: center;
    font-weight: 500;
    margin-bottom: 0.4rem;
}
.alert {
    padding: 10px 13px; border-radius: 10px; margin-bottom: 0.7rem;
    display: flex; align-items: center; gap: 10px;
    font-weight: 500; font-size: 0.99rem;
    box-shadow: 0 2px 12px rgba(46,204,113,0.07);
}
.alert.success { background: #e7fbe9; color: #26a65b; border-left: 5px solid #2ecc71;}
.alert.error   { background: #fdeaea; color: #c0392b; border-left: 5px solid #e74c3c;}
.complaint-form { display: flex; flex-direction: column; gap: 0.85rem;}
.input-group {
    position: relative; margin-bottom: 0.2rem;
}
.input-group label {
    margin-bottom: 0.2rem; font-weight: 600; font-size: 0.93rem;
    color: var(--dark);
    letter-spacing: 0.01em;
    transition: color 0.2s;
    display: block;
}
.input-group input,
.input-group textarea {
    width: 100%;
    max-width: 100%;
    display: block;
    padding: 0.5rem 0.8rem 0.5rem 2.2rem;
    border: 1.1px solid #e2eafc;
    border-radius: 11px;
    font-size: 0.97rem;
    background: rgba(255,255,255,0.85);
    transition: border 0.3s, box-shadow 0.3s, background 0.3s;
    outline: none;
    margin: 0;
    box-sizing: border-box;
}
.input-group input:focus,
.input-group textarea:focus {
    border: 1.3px solid var(--secondary);
    box-shadow: 0 2px 7px 0 #4f8cff22;
    background: rgba(255,255,255,0.97);
}
.input-group i {
    position: absolute; left: 0.8rem; top: 52%; transform: translateY(-50%);
    color: #a3b9d2; font-size: 1rem; pointer-events: none; transition: color 0.2s;
}
.input-group input:focus ~ i,
.input-group textarea:focus ~ i {
    color: var(--secondary);
}
.input-group textarea {
    min-height: 60px;
    max-height: 85px;
    resize: vertical;
}
.submit-btn {
    background: linear-gradient(90deg, var(--secondary) 50%, var(--accent) 100%);
    color: #fff; border: none; padding: 0.7rem 1rem;
    border-radius: 11px;
    font-size: 1.01rem; font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.2s, background 0.23s;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin-top: 0.3rem;
    box-shadow: 0 2px 10px #4f8cff18;
}
.submit-btn:hover {
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 6px 16px #4f8cff24;
    background: linear-gradient(90deg, var(--accent) 30%, var(--secondary) 100%);
}
.submit-btn:active { transform: scale(0.99);}
.copyright {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
}
.timestamp {
    margin-bottom: 5px;
}
.license {
    font-size: 14px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .container {
        min-height: 100vh;
        height: 100vh;
        padding: 0;
    }
    .glass-card {
        max-width: 100vw;
        border-radius: 0;
        min-height: 100vh;
        height: 100vh;
        padding: 0.7rem 0.1rem 1rem 0.1rem;
        justify-content: flex-start;
    }
    .logo-center-box img { width: 65px; }
    .big-title, .big-title.iconic-title { font-size: 1.2rem;}
    .system-title,
    .system-title.animated-gradient-text { font-size: 1.08rem !important; }
    .long-desc { font-size: 0.96rem;}
}

/* Extra: fallback if system-title dipakai tanpa gradient class */
.system-title {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: var(--secondary) !important;
    margin-bottom: 0.7rem;
    margin-top: 0.15rem;
    text-shadow: 0 3px 12px #4f8cff18;
}