/* Glass Panels */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

/* Emergency Contacts / Cards */
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.card-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: #eef2f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 1rem;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.btn-call {
    display: inline-block;
    background: var(--brand-primary);
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(110, 147, 179, 0.3);
    margin-top: 4px;
    transition: transform 0.2s;
}

.btn-call:active {
    transform: scale(0.95);
}

/* Forms */
.form-panel .form-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1dee8;
    border-radius: 10px;
    background: #fdfdfd;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(110, 147, 179, 0.15);
}

.btn-submit {
    width: 100%;
    background: var(--brand-dark);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
    z-index: 10;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    flex: 1;
    position: relative;
    transition: color 0.3s;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

.nav-item.active {
    color: var(--brand-primary);
}

.nav-item.active svg {
    transform: translateY(-2px);
}

/* Custom Modal */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.custom-modal-box {
    background: #fff;
    width: 320px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal-overlay.show .custom-modal-box {
    transform: scale(1);
}

.custom-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.custom-modal-close:hover {
    background: rgba(0, 0, 0, 0.6);
}

.custom-modal-header {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #f1c40f, #f39c12); /* default: kuning */
}

/* SIAGA 1 = Waspada → kuning/orange */
.custom-modal-header.siaga1 {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* SIAGA 2 = Bahaya → merah */
.custom-modal-header.siaga2 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.modal-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    fill: #fff;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    z-index: 2;
    margin-bottom: 20px;
}

.custom-modal-body {
    padding: 20px;
    text-align: center;
}

.custom-modal-body h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.custom-modal-body p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.btn-modal-action {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.5px;
}

.btn-modal-action:active {
    transform: scale(0.96);
}

/* Success Modal Details */
.success-modal-box {
    background: #fff;
    width: 320px;
    border-radius: 20px;
    box-shadow: 0 10px 0 #68e3a6, 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 60px 20px 40px;
    text-align: center;
    margin-top: 50px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal-overlay.show .success-modal-box {
    transform: scale(1) translateY(0);
}

.success-icon-wrapper {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(104, 227, 166, 0.3);
    border-radius: 50%;
    animation: pulsateGlow 2s infinite ease-out;
}

.success-icon-circle {
    position: relative;
    width: 65px;
    height: 65px;
    background: #68e3a6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(104, 227, 166, 0.5);
}

.success-icon-circle svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
}

@keyframes pulsateGlow {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.success-modal-box h2 {
    font-size: 1.8rem;
    color: #111;
    margin-bottom: 12px;
    font-weight: 700;
}

.success-modal-box p {
    font-size: 1.05rem;
    color: #a0a0a0;
    line-height: 1.5;
}

/* =====================================================
   RESPONSIVE COMPONENTS - TABLET (768px+)
   ===================================================== */
@media (min-width: 768px) {
    .custom-modal-box {
        width: 400px;
    }

    .success-modal-box {
        width: 380px;
    }

    .glass-panel {
        padding: 24px 28px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px;
        font-size: 1rem;
    }

    .btn-submit {
        padding: 16px;
        font-size: 1.05rem;
    }

    .contact-card {
        gap: 20px;
    }

    .card-icon {
        width: 56px;
        height: 56px;
        font-size: 2rem;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    .btn-call {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

/* =====================================================
   RESPONSIVE COMPONENTS - DESKTOP (1024px+)
   ===================================================== */
@media (min-width: 1024px) {
    .glass-panel {
        padding: 28px 32px;
        border-radius: 24px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .custom-modal-box {
        width: 440px;
    }

    /* Cards grid layout on desktop */
    .contact-card {
        gap: 24px;
    }
}
