/* Base responsive styles */
* {
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f5f7fa;
}
.container {
    max-width: 950px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
h1, h2, h3 {
    color: #1a2b4c;
    word-wrap: break-word;
}
a {
    text-decoration: none;
}
button, .button {
    background: #1a2b4c;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
}
button:hover, .button:hover {
    background: #0f1a2c;
}
input, select, textarea {
    /*width: 100%;*/
    padding: 10px;
    margin: 5px 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

input[type="radio"]:checked + label {
    background-color: #e3f7e9;
    border-radius: 4px;
    padding: 4px 8px;
    font-weight: bold;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block; /* For horizontal scroll on small screens */
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    white-space: nowrap; /* Prevent wrapping in table cells */
}
th {
    background: #f2f2f2;
}
/* Make tables scrollable horizontally on small screens */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}
.tabs a {
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 6px 6px 0 0;
    color: #333;
    flex: 1 1 auto;
    text-align: center;
}
.tabs a.active {
    background: #1a2b4c;
    color: white;
}
@media (max-width: 480px) {
    .tabs a {
        padding: 8px 10px;
        font-size: 14px;
    }
}
.form-group {
    margin-bottom: 20px;
}
.question {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}
.options {
    margin-left: 10px;
}
.options label {
    font-weight: normal;
    display: block;
    margin-bottom: 8px;
}
.result-box {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}
.qualified { background: #e3f7e9; border-left: 6px solid #27ae60; }
.borderline { background: #fff4e5; border-left: 6px solid #f39c12; }
.unqualified { background: #f9e9e8; border-left: 6px solid #c0392b; }
.calendly-button, .booking-button {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.calendly-button:hover {
    background: #219653;
}
.error {
    color: #c0392b;
    background: #f9e9e8;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #3498db;
}
hr {
    margin: 30px 0;
    border: 1px solid #eee;
}
/* Small screen adjustments */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 15px;
    }
    button, .button, .calendly-button {
        width: 100%;
        text-align: center;
    }
    input, select, textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Slot options container */
#time_slots {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

/* Individual slot option */
#time_slots div {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    min-width: 150px;
    transition: background 0.2s;
}

#time_slots div:hover {
    background: #f0f0f0;
}

/* Radio button */
#time_slots input[type="radio"] {
    margin-right: 10px;
    width: auto;
    flex-shrink: 0;
}

/* Label */
#time_slots label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    flex: 1;
}

/* When radio is checked, highlight the option */
#time_slots input[type="radio"]:checked + label {
    font-weight: bold;
    color: #1a2b4c;
}

/* For mobile: stack vertically on small screens */
@media (max-width: 600px) {
    #time_slots div {
        width: 100%;
        min-width: auto;
    }
}

.stat-card {
    background: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #1a2b4c;
}