/* ==========================================================================
   Apple-Inspired Premium Customer Support Landing Page
   ========================================================================== */

/* --- CSS Reset & Variables --- */
:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Colors */
    --primary-blue: #0071e3;
    --primary-blue-hover: #0077ed;
    --primary-blue-active: #005bb5;
    --bg-white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(255, 255, 255, 0.6);
    --overlay-bg: rgba(0, 0, 0, 0.35);
    
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-muted: #6e6e73;
    
    /* Status & Highlights */
    --status-green: #34c759;
    --divider-color: rgba(0, 0, 0, 0.06);
    
    /* Shadows */
    --card-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25),
                   0 18px 36px -18px rgba(0, 0, 0, 0.22),
                   0 0 1px inset rgba(255, 255, 255, 0.9);
    --btn-shadow: 0 4px 14px 0 rgba(0, 113, 227, 0.39);
    --btn-shadow-hover: 0 6px 20px 0 rgba(0, 113, 227, 0.5);
    --icon-shadow: 0 8px 16px rgba(0, 113, 227, 0.15);
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: var(--font-family);
    background-color: #f5f5f7;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden !important; /* Strictly lock page scrolling */
    position: fixed; /* Freeze page content completely */
    top: 0;
    left: 0;
    user-select: none; /* Prevent text selection on background */
    -webkit-user-select: none;
}

/* --- Unblurred Background Image Container --- */
.bg-image-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.bg-custom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none !important; /* Crystal clear background image without any blur */
}

/* Show image1.jpg on Laptop/Desktop screens (> 768px) */
@media (min-width: 769px) {
    .bg-desktop-only {
        display: block;
    }
    .bg-mobile-only {
        display: none !important;
    }
}

/* Show image2.jpg on Mobile screens (<= 768px) */
@media (max-width: 768px) {
    .bg-desktop-only {
        display: none !important;
    }
    .bg-mobile-only {
        display: block;
    }
}

/* --- Fullscreen Overlay (Transparent background visibility) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    touch-action: none;
}

.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    margin: auto;
    text-align: center;
}

.overlay-top-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.9);
    line-height: 1.45;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* --- Classic iOS Alert Dialog Box with Alert Animations --- */
.ios-alert-dialog {
    width: 100%;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 24px 20px 20px 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 113, 227, 0.35);
    text-align: left;
    animation: alertEntrance 350ms cubic-bezier(0.16, 1, 0.3, 1) forwards,
               subtleVibrate 3s ease-in-out infinite 0.5s;
}

@keyframes alertEntrance {
    0% {
        opacity: 0;
        transform: scale(0.88) translateY(16px);
    }
    60% {
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes subtleVibrate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    2% { transform: translateY(-2px) rotate(-0.5deg); }
    4% { transform: translateY(2px) rotate(0.5deg); }
    6% { transform: translateY(-1px) rotate(-0.3deg); }
    8% { transform: translateY(1px) rotate(0.3deg); }
    10% { transform: translateY(0) rotate(0deg); }
}

.dialog-body {
    margin-bottom: 24px;
}

.dialog-text {
    font-size: 1.02rem;
    line-height: 1.5;
    color: #111111;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.phone-link {
    color: #0071e3;
    text-decoration: underline;
    font-weight: 600;
}

.dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ios-btn {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: transform 100ms ease, opacity 100ms ease;
    -webkit-tap-highlight-color: transparent;
}

.ios-btn-primary {
    background-color: #0071e3;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.ios-btn-primary:active {
    background-color: #005bb5;
    transform: scale(0.98);
}

.ios-btn-secondary {
    background-color: #6e6e73;
    color: #ffffff;
}

.ios-btn-secondary:active {
    background-color: #555559;
    transform: scale(0.98);
}

/* --- Header Section --- */
.card-header {
    text-align: center;
    margin-bottom: 28px;
}

.icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.12) 0%, rgba(0, 113, 227, 0.04) 100%);
    border: 1px solid rgba(0, 113, 227, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--primary-blue);
    box-shadow: var(--icon-shadow);
    position: relative;
}

.support-icon {
    stroke-width: 2;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.card-subtitle {
    font-size: 0.92rem;
    line-height: 1.48;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 340px;
    margin: 0 auto;
}

/* --- Information Section --- */
.info-section {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.highlighted-number {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace, var(--font-family);
    letter-spacing: 0.5px;
    color: var(--primary-blue);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--status-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(52, 199, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
    }
}

.info-divider {
    height: 1px;
    background-color: var(--divider-color);
    width: 100%;
}

/* --- Action Section & Primary Button --- */
.action-section {
    width: 100%;
}

.primary-button {
    position: relative;
    width: 100%;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-blue);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--btn-shadow);
    border: none;
    outline: none;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 200ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}

.primary-button:hover {
    background-color: var(--primary-blue-hover);
    box-shadow: var(--btn-shadow-hover);
    transform: translateY(-1px);
}

.primary-button:active {
    background-color: var(--primary-blue-active);
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 2px 8px 0 rgba(0, 113, 227, 0.4);
}

.primary-button:focus-visible {
    outline: 3px solid rgba(0, 113, 227, 0.4);
    outline-offset: 3px;
}

/* Ripple Animation Element */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 600ms linear;
    background-color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Emergency Panic Animations & Urgent Styling --- */
.emergency-theme {
    border: 1px solid rgba(255, 59, 48, 0.4);
    box-shadow: 0 0 35px rgba(255, 59, 48, 0.25),
                0 30px 60px -12px rgba(0, 0, 0, 0.35);
    animation: panicEntrance 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards,
               subtleVibrate 3s ease-in-out infinite 0.5s;
}

@keyframes panicEntrance {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(15px);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes subtleVibrate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    2% { transform: translateY(-2px) rotate(-0.5deg); }
    4% { transform: translateY(2px) rotate(0.5deg); }
    6% { transform: translateY(-1px) rotate(-0.3deg); }
    8% { transform: translateY(1px) rotate(0.3deg); }
    10% { transform: translateY(0) rotate(0deg); }
}

.alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.alert-pulse {
    width: 8px;
    height: 8px;
    background-color: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    animation: alertPulse 1.2s infinite;
}

@keyframes alertPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.8);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.emergency-icon {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.15) 0%, rgba(255, 59, 48, 0.05) 100%);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    box-shadow: 0 8px 20px rgba(255, 59, 48, 0.2);
}

.emergency-title {
    color: #1d1d1f;
}

.text-danger {
    color: #ff3b30 !important;
    font-weight: 700;
}

.emergency-button {
    background: linear-gradient(135deg, #ff3b30 0%, #d70015 100%);
    box-shadow: 0 4px 18px rgba(255, 59, 48, 0.45);
    animation: buttonGlow 2s infinite ease-in-out;
}

.emergency-button:hover {
    background: linear-gradient(135deg, #ff453a 0%, #e00018 100%);
    box-shadow: 0 6px 24px rgba(255, 59, 48, 0.6);
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 4px 18px rgba(255, 59, 48, 0.45);
    }
    50% {
        box-shadow: 0 6px 28px rgba(255, 59, 48, 0.75);
    }
}

.pulse-icon {
    animation: iconShake 2.5s infinite;
}

@keyframes iconShake {
    0%, 100% { transform: scale(1); }
    10%, 20% { transform: scale(1.15) rotate(-8deg); }
    15%, 25% { transform: scale(1.15) rotate(8deg); }
    30% { transform: scale(1); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 480px) {
    .support-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .card-title {
        font-size: 1.35rem;
    }

    .card-subtitle {
        font-size: 0.88rem;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .info-section {
        padding: 12px 16px;
        margin-bottom: 24px;
    }

    .info-row {
        padding: 8px 0;
    }

    .info-label, .info-value {
        font-size: 0.82rem;
    }

    .primary-button {
        height: 52px;
        font-size: 1rem;
        border-radius: 14px;
    }
}
