/* TSS Walk-In - Modern CSS replacing Foundation 4 */

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

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
    background: #fff;
    padding-top: 1em;
}

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 15px;
    margin-bottom: 10px;
}

.col-2  { flex: 0 0 calc(16.666% - 13px); }
.col-3  { flex: 0 0 calc(25% - 12px); }
.col-4  { flex: 0 0 calc(33.333% - 10px); }
.col-6  { flex: 0 0 calc(50% - 8px); }
.col-12 { flex: 0 0 100%; }

@media (max-width: 640px) {
    .col-2, .col-3, .col-4, .col-6 { flex: 0 0 100%; }
}

/* Typography */
h3 { font-size: 1.6em; font-weight: 400; margin-bottom: 0.5em; }
h5 { font-size: 1.1em; font-weight: 600; margin-bottom: 0.75em; }

/* Panel (card-like container) */
.panel {
    background: #f2f2f2;
    border: 1px solid #d8d8d8;
    padding: 20px;
    margin-bottom: 20px;
}

/* Form elements */
label {
    display: block;
    font-size: 0.875em;
    font-weight: 600;
    margin-bottom: 3px;
    cursor: pointer;
}

input[type="text"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 8px;
    font-size: 0.875em;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    margin-bottom: 10px;
    transition: border-color 0.15s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: #008CBA;
    outline: none;
}

input[type="text"][readonly] {
    background: #e8e8e8;
}

/* Checkboxes and radios inline */
input[type="checkbox"],
input[type="radio"] {
    margin-right: 5px;
    vertical-align: middle;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
    display: inline;
    font-weight: 400;
    margin-right: 15px;
}

.checkbox-grid {
    padding: 5px 0;
    justify-content: center;
}

/* Buttons */
.button, a.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.875em;
    font-weight: 600;
    color: #fff;
    background: #008CBA;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    line-height: 1;
    transition: background 0.15s ease;
}

.button:hover { background: #007095; }

.button.alert {
    background: #f04124;
}

.button.alert:hover {
    background: #cf2a0e;
}

.button.huge {
    font-size: 1.25em;
    padding: 18px 36px;
}

.button.disabled,
.button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.button-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}


/* Utility */
p { margin-bottom: 0.75em; }
