:root {
    --bg-color: #b2f5ea;
    /* Deeper Teal Mist */
    --text-color: #1a202c;
    /* Darker grey for better contrast */
    --accent-color: #319795;
    /* Darker Teal */
    --accent-secondary: #3182ce;
    /* Darker Blue */

    /* Glass effect with more presence */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --input-bg: #f7fafc;
    /* Solid off-white for better input visibility */

    --font-main: 'Outfit', sans-serif;
    --shadow-soft: 0 10px 30px -10px rgba(49, 130, 206, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    /* Stronger gradient */
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 15px;
    /* Slightly less padding on edges to maximize space on mobile */
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

h1,
h2,
h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #2b6cb0;
    /* Stronger blue for headers */
}

p {
    margin-bottom: 1.5rem;
    color: #4a5568;
    line-height: 1.6;
}

input,
select,
button {
    width: 100%;
    padding: 16px;
    /* Larger touch targets for mobile */
    margin-bottom: 15px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    /* Thicker border for visibility */
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Fix invisible options on some devices */
select option {
    background-color: white;
    color: #1a202c;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 151, 149, 0.2);
}

button {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1.1rem;
    /* Larger text for mobile buttons */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
    filter: brightness(110%);
}

button.secondary {
    background: transparent;
    border: 2px solid var(--accent-secondary);
    color: var(--accent-secondary);
    box-shadow: none;
}

button.secondary:hover {
    background: rgba(49, 130, 206, 0.05);
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specific elements */
.logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-color);
    letter-spacing: -1px;
}

.hidden {
    display: none !important;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background: #e2e8f0;
    border-radius: 10px;
    height: 10px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* Intervention Card */
.intervention-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.intervention-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.icon {
    font-size: 1.5rem;
}


/* Panic Button Custom Style */
.panic-button {
    background: white;
    color: #e53e3e;
    border: 3px solid #e53e3e;
    /* Thicker border */
    font-weight: 800;
    font-size: 1.2rem;
    animation: none;
}

.panic-button:hover {
    background: #e53e3e;
    color: white;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .glass-card {
        padding: 20px;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    input,
    select,
    button {
        padding: 18px;
        /* Easier to tap */
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .intervention-card {
        padding: 15px;
    }
}