/* === MAIN FORM STYLES === */
form {
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 0 10px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    color: #333;
    text-align: left;
    font-size: 14px;
}

form input[type="text"],
form input[type="number"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.submit-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin: 25px auto;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #45a049;
}

.form-description,
.form-instructions {
    font-size: 13px;
    color: #555;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: justify;
    padding: 0 10px;
}

.form-description i {
    font-style: italic;
}


/* === F1-SPECIFIC FORM STYLES === */

/* Fixes F1 form spacing */
.content-box input[type="text"],
.content-box input[type="number"] {
    display: block;
    margin-bottom: 18px;
}

.content-box label {
    margin-bottom: 5px;
}

/* Sets specific width for F1 form inputs (w1, n1, c1, l1) */
form input[type="text"][id^="w"],
form input[type="text"][id^="n"],
form input[type="text"][id^="c"],
form input[type="text"][id^="l"] {
    width: 50ch; /* roughly matches 40-character input */
}

.form-field-group {
    margin-bottom: 15px;
}

.form-helper-text {
    display: block;
    font-size: 0.8em; /* ~12px */
    color: #666;
    margin-top: -14px;
    font-style: italic;
}

.content-box form input[type="text"],
.content-box form input[type="number"] {
    margin-bottom: 18px; /* F1 form-specific margin */
}


/* === F2-SPECIFIC FORM STYLES === */

/* Specific layout for the Borough dropdown in F2_NYC.html */
.form-group.borough-select {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 25px;
}

.form-group.borough-select label {
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.form-group.borough-select select {
    flex-grow: 0;
    width: auto;
    max-width: 20ch;
    margin-bottom: 0;
}


/* === FORM PREVIEW STYLES (from F1E, F3, etc.) === */

/* From F3 */
.concatenated-field-style {
    color: green;
    border: none;
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
    border-radius: 0;
    font-weight: normal;
    font-size: 14px;
    text-align: left;
}

/* From F1E inline styles */
.wd-preview { color: black; }
.nd-preview { font-weight: bold; color: #b22222; }
.cd-preview { color: royalblue; }
.brag-preview { font-style: italic; }