/* ===== RESET ===== */
* { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: #e0f7fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 90px;
}

/* ===== ONE-CLICK BACKGROUND ANIMATION ===== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,123,255,0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0,200,255,0.15), transparent 45%);
    animation: oneClickPulse 12s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes oneClickPulse {
    0% { filter: brightness(1); transform: scale(1); }
    100% { filter: brightness(1.15); transform: scale(1.05); }
}

/* ===== TOP RIGHT ===== */
.top-right {
    position: absolute;
    top: env(safe-area-inset-top, 20px);
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 100;
}
.top-right a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 14px;
    background-color: #ff5722;
    border-radius: 8px;
    cursor: pointer;
}

/* ===== MAIN ===== */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: clamp(110px, 18vh, 250px);
}

.slogan {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: bold;
    color: #007BFF;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}
.slogan::before,
.slogan::after {
    content: "☁";
    font-size: 60px;
    position: absolute;
    animation: floatCloud 4s ease-in-out infinite alternate;
    opacity: 0.6;
}
.slogan::before { left: -70px; top: -20px; }
.slogan::after { right: -70px; bottom: -20px; }

@keyframes floatCloud {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-15px) rotate(5deg); opacity: 1; }
    100% { transform: translateY(0) rotate(-5deg); opacity: 0.6; }
}

/* ===== SEARCH ===== */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-bottom: 5px;
}
.search-wrapper input {
    width: 100%;
    padding: 18px 90px 18px 46px;
    font-size: clamp(16px, 3.5vw, 26px);
    border-radius: 30px;
    border: 1px solid #ccc;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.lightbulb {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.search-wrapper button#askBtn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    font-size: clamp(14px, 2.5vw, 18px);
    border: none;
    border-radius: 20px;
    background-color: #007BFF;
    color: #fff;
    cursor: pointer;
}

/* ===== VISIT TEXT ===== */
.visit-us {
    font-size: 10px;
    font-weight: bold;
    color: #555;
    text-align: center;
    margin: 6px 0;
}

/* ===== LOGOS ===== */
.icon-link img {
    width: clamp(90px, 28vw, 140px);
    margin-bottom: 12px;
    border-radius: 10px;
    border: 2px solid rgba(0,123,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-link img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* ===== PUBLIC INFO ===== */
.public-info {
    font-size: 12px;
    color: #1e88e5;
    text-align: center;
    margin: 20px 10px 20px;
    max-width: 900px;
    line-height: 1.5;
}

/* ===== SAMPLE QUESTIONS ===== */
.sample-questions {
    width: 100%;
    max-width: 900px;
    margin: 10px auto 30px;
    padding: 0 6px;
}

.sample-title {
    font-size: 16px;
    font-weight: bold;
    color: #007BFF;
    text-align: center;
    margin-bottom: 14px;
}

.sample-card {
    width: 100%;
    margin-bottom: 12px;
}

.sample-question {
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 16px;
    background: #ffffff;
    color: #0d47a1;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sample-question:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.sample-reply {
    display: none;
    position: relative;
    margin-top: 8px;
    background: rgba(255,255,255,0.96);
    border-left: 4px solid #007BFF;
    border-radius: 12px;
    padding: 16px 38px 14px 14px;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.sample-reply.show {
    display: block;
}

.sample-reply p {
    margin: 0 0 8px;
}

.reply-login-text {
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-top: 6px;
}

.close-reply {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 0);
    width: 100%;
    background: #fff;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 200;
}
.bottom-nav a {
    text-decoration: none;
    color: #333;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bottom-nav img {
    width: 40px;
    margin-bottom: 4px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 500;
}
.modal-content {
    background: #fff;
    margin: 12vh auto;
    padding: 22px;
    border-radius: 12px;
    width: min(92%, 380px);
    text-align: center;
    position: relative;
}
.close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    cursor: pointer;
}

/* ===== MODAL INPUTS ===== */
.modal-info-text {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    font-size: 14px;
}

.modal-content button {
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4285F4;
    color: #fff;
    padding: 10px;
    margin-top: 12px;
    cursor: pointer;
}
.google-btn img {
    width: 20px;
    margin-right: 10px;
}
.password-note {
    font-size: 11px;
    color: #777;
    margin-top: -5px;
    margin-bottom: 10px;
    text-align: left;
}

/* ===== DIRECT REPAIR BUTTON ===== */
.direct-repair-btn {
    display: inline-block;
    margin: 12px 0 4px;
    padding: 10px 18px;
    background-color: #007BFF;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* ===== SMALL SCREEN ===== */
@media (max-width: 360px) {
    .search-wrapper input {
        font-size: 15px;
        padding-left: 42px;
        padding-right: 80px;
    }
    .modal-content {
        width: 95%;
        padding: 16px;
    }
    .search-wrapper button#askBtn {
        font-size: 14px;
        padding: 6px 12px;
    }
    .sample-question {
        font-size: 13px;
    }
}
.sample-reply a {
  color: #007BFF;
  font-weight: bold;
  text-decoration: none;
}

.sample-reply a:hover {
  text-decoration: underline;
}