/* ===== FORM LAYOUT ===== */

.form-wrapper {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 10px;
}

.form-card {
    background: white;
    padding: 26px 28px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1.5px solid #cce3d6;
}

.form-title {
    text-align: center;
    margin-bottom: 26px;
    font-weight: 700;
}

/* ===== FIELDS ===== */

.form-group {
    margin-bottom: 18px;
}

.form-label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    border-radius: 10px;
    padding: 10px 14px;
    border: 1.5px solid #127f28;
    font-size: 15px;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(18, 127, 40, 0.15);
}

/* ===== ERRORS ===== */

.form-error-box {
    background: #ffeaea;
    color: #a30808;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.field-error {
    margin-top: 6px;
    color: #c0392b;
    font-size: 13px;
}

/* ===== BUTTON ===== */

.form-submit {
    background: #127f28;
    color: white;
    padding: 12px 26px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 4px 0 #0b4f1a;
}

.form-submit:hover {
    transform: translateY(-1px);
}

/* Make number inputs match text inputs */
input[type="number"].form-control {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Remove spinner arrows (Chrome, Safari, Edge) */
input[type="number"].form-control::-webkit-inner-spin-button,
input[type="number"].form-control::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove default list styling */
.interest-boxes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Inline boxes */
.interest-boxes li {
    display: inline-block;
    margin-right: 12px;
}

/* Hide radio inputs */
.interest-boxes input[type="radio"] {
    display: none;
}

/* Base box style */
.interest-boxes label {
    display: inline-block;
    min-width: 90px;
    padding: 10px 18px;

    border: 2px solid #000;
    border-radius: 8px;

    text-align: center;
    font-weight: 600;
    cursor: pointer;

    background: #fff;
    transition: all 0.15s ease;
}

/* Hover feedback */
.interest-boxes label:hover {
    background-color: #f4f4f4;
}

/* SELECTED STATE. Works with Django RadioSelect */
.interest-boxes label:has(input[type="radio"]:checked) {
    background-color: #7ed87e;
    border-color: #000;
    color: #000;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* Optional: pressed feel */
.interest-boxes input[type="radio"]:checked+label {
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.05);
}