:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #60a5fa;
    /* New Lighter Shade */
    --primary-light-hover: #3b82f6;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-radius: 16px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* ... existing code ... */

.separator {
    margin: 40px 0 20px 0;
    /* Increased top margin */
    border: none;
    border-top: 1px solid #e2e8f0;
}

.questions-section {
    text-align: center;
}

/* ... existing code ... */

.secondary-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-light);
    /* Lighter solid background */
    color: white;
    /* White text like primary */
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.secondary-btn:hover {
    background-color: var(--primary-light-hover);
}

.secondary-btn:disabled {
    background-color: #cbd5e1;
    /* Gray when disabled */
    color: white;
    cursor: not-allowed;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    /* Prevent double-tap zoom on some devices */
    touch-action: manipulation;
}

.container {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

header {
    text-align: center;
    margin-bottom: 24px;
}

header h1 {
    font-size: 24px;
    font-weight: 700;
}

header p {
    color: var(--text-muted);
}

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

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

input[type="tel"] {
    width: 60%;
    /* Smaller size as requested */
}

input[type="text"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@keyframes error-flash {
    0% {
        border-color: #ef4444;
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        border-color: #ef4444;
        transform: translateX(0);
    }
}

.input-error {
    animation: error-flash 0.4s ease-in-out;
}

.input-invalid {
    background-color: #fee2e2 !important;
    /* Force red background */
    border-color: #ef4444 !important;
}

/* Specific highlight for checkbox container */
.checkbox-error {
    animation: error-flash 0.4s ease-in-out;
    background-color: #fee2e2;
    border-radius: 4px;
    padding: 4px;
}

small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

.error-text {
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
    display: none;
    /* Hidden by default via class, but double check */
}

.error-text:not(.hidden) {
    display: block;
    animation: error-flash 0.4s ease-in-out;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.tab-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Map */
#map {
    height: 300px;
    width: 100%;
    border-radius: 12px;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    z-index: 1;
    /* Fix z-index issues */
}

.hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

/* Button */
button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

button[type="submit"]:hover {
    background-color: var(--primary-hover);
}

button[type="submit"]:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

/* Status */
#statusMessage {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.hidden {
    display: none;
}

.success {
    background-color: #dcfce7;
    color: #166534;
}

.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Checkbox Style */
.checkbox-group {
    display: flex;
    /* Flexrow by default */
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0 4px;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
    margin: 0;
    /* Reset margin */
}

/* Override global label style for checkbox */
.checkbox-group label {
    display: inline;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
}

.separator {
    margin: 40px 0 20px 0;
    /* Increased top margin */
    border: none;
    border-top: 1px solid #e2e8f0;
}

.questions-section {
    text-align: center;
}

.questions-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.questions-section p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 14px;
}

.secondary-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-light);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.secondary-btn:hover {
    background-color: var(--primary-light-hover);
}

.secondary-btn:disabled {
    background-color: #94a3b8;
    color: white;
    cursor: not-allowed;
}