@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

@media (max-width: 767px) {
    .homepage-card {
        position: static !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        top: unset !important;
        left: unset !important;
        transform: none !important;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem !important;
        box-shadow: none !important;
    }
    body {
        padding: 0 !important;
    }
}
/* Emergency Guides Process Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: auto;
    font-family: 'Roboto';
}

/* Prevent scrollbars on mobile devices */
@media (max-width: 767px) {
    html, body {
        overflow: hidden;
    }
}

.homepage-bg {
    position: fixed;
    top: 0;
    left: 0;
    min-height: 100vh;
    min-width: 100vw;
    width: 100vw;
    height: 100vh;
    background: #0099D8;
    z-index: -1;
}

.homepage-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;
    max-width: 600px;
    background: rgba(255,255,255,0.97);
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(44, 62, 80, 0.18);
    padding: 3rem 2rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: inherit;
}

.homepage-logo {
    width: 140px;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
}

.homepage-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #0085CA;
    text-align: center;
    width: 100%;
    font-family: inherit;
}

.homepage-desc {
    font-size: 1.15rem;
    color: #293F63;
    margin-bottom: 2.2rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    font-family: inherit;
}

.homepage-label-center {
    display: block;
    width: 100%;
    text-align: center;
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    color: #0099D8;
    font-weight: 500;
    font-family: inherit;
    margin-bottom: 0.5rem;
}

/* Form Controls */
.form-control-lg {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.08rem;
    border-radius: 0.75rem;
    border: 1px solid #b0bec5;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    text-align: center;
}

.form-control-lg:focus {
    border-color: #0085CA;
    outline: none;
}

.homepage-userid,
.fp-user-input {
    max-width: 75%;
    margin: 0 auto;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.mb-4 {
    margin-bottom: 1.8rem;
}

/* Buttons */
.choice-chip.homepage-btn {
    padding: 0.8rem 1.7rem;
    font-size: clamp(1.04rem, 2.6vw, 1.2rem);
    border-radius: 2rem;
    font-weight: 600;
    background: #0099D8;
    color: #fff;
    border: 2px solid #0099D8;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    outline: none;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
    margin-bottom: 0;
    user-select: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    min-width: 120px;
    max-width: 220px;
    margin: 0 auto;
}

.choice-chip.homepage-btn:hover,
.choice-chip.homepage-btn:focus {
    background: #fff;
    color: #0099D8;
    border-color: #0099D8;
    box-shadow: 0 4px 16px rgba(44,62,80,0.12);
}

.choice-chip.homepage-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Emergency Guide KB Buttons - Wider variant */
.kb-guide-btn {
    padding: 0.7rem 1.5rem;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    border-radius: 2rem;
    font-weight: 600;
    background: #fff;
    color: #0099D8;
    border: 2px solid #0099D8;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    outline: none;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
    margin-bottom: 0;
    user-select: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 87%;
    min-width: 200px;
    max-width: 500px;
    margin: 0 auto;
}

.kb-guide-btn:hover,
.kb-guide-btn:focus {
    background: #0099D8;
    color: #fff;
    border-color: #005b8c;
    box-shadow: 0 4px 16px rgba(44,62,80,0.12);
}

.kb-guide-btn:active {
    transform: scale(0.98);
}

/* Service Desk Call Button */
.service-desk-btn {
    display: inline-block;
    background: #0099D8;
    color: #fff !important;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 153, 216, 0.3);
    margin-top: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid #0099D8;
    outline: none;
}

.service-desk-btn:hover {
    background: #fff;
    color: #0099D8 !important;
    border-color: #0099D8;
    box-shadow: 0 4px 12px rgba(0, 153, 216, 0.4);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.service-desk-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 153, 216, 0.3);
}

/* Button Group */
.homepage-btn-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
/* Service Desk Call Button */
.service-desk-btn {
    display: inline-block;
    background: #0099D8;
    color: #fff !important;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 153, 216, 0.3);
    margin-top: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid #0099D8;
    outline: none;
}

.service-desk-btn:hover {
    background: #fff;
    color: #0099D8 !important;
    border-color: #0099D8;
    box-shadow: 0 4px 12px rgba(0, 153, 216, 0.4);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.service-desk-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 153, 216, 0.3);
}

.service-desk-btn .phone-icon {
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}

.service-desk-btn:hover .phone-icon {
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(169deg) brightness(96%) contrast(101%);
}

/* Footer */
.homepage-footer {
    margin-top: 4rem;
    font-size: 1rem;
    color: #293F63;
    text-align: center;
    width: 100%;
    font-family: inherit;
}

.homepage-footer p {
    margin: 0;
    padding: 0.5rem 1rem;
}

.homepage-footer a {
    color: #0099D8;
    text-decoration: underline;
    font-weight: 500;
    font-family: inherit;
}

.homepage-powered {
    margin-top: 1.5rem;
    color: #293F63;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    font-family: inherit;
    display: block;
}

/* Step Images */
.homepage-step-img {
    max-width: 90%;
    height: auto;
    max-height: 32vh;
    border-radius: 0.7rem;
    margin: 1rem auto 1rem auto;
    display: block;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
}

/* Text Utilities */
.text-start {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-danger {
    color: #dc3545 !important;
    font-weight: bold;
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.text-danger.font {
    font-family: inherit;
}

.text-success {
    color: #28a745;
}

/* Pre-formatted text */
pre {
    background: #f5f7fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-size: 0.9rem;
    color: #293F63;
}

/* Image Utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 700px) {
    .homepage-card {
        max-width: 98vw;
        padding: 2rem 0.5rem 1.5rem 0.5rem;
    }
    
    .homepage-title {
        font-size: 2rem;
    }
    
    .homepage-logo {
        width: 100px;
    }
    
    .choice-chip.homepage-btn,
    .kb-guide-btn {
        width: 90%;
        font-size: 0.95rem;
    }
    
    .service-desk-btn {
        padding: 0.65rem 1.5rem;
        font-size: 1rem;
    }
    
    .homepage-desc {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .homepage-card {
        padding: 1rem 0.5rem;
        max-width: 100vw;
        width: 100vw;
    }
    
    .homepage-title {
        font-size: 1.4rem;
    }
    
    .homepage-desc {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .form-control-lg {
        font-size: 0.95rem;
        padding: 0.4rem 0.6rem;
    }
    
    .service-desk-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .homepage-logo {
        max-width: 80px;
    }
}