/* Camps Registration Form v1.0.0 */

#camps-form-wrap,
#camps-form-wrap *,
#camps-form-wrap *::before,
#camps-form-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#camps-form-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.45;
}

/* ===== Headings ===== */
#camps-form-wrap .cf-title {
    font-size: 26px;
    font-weight: 400;
    color: #3a9bbf;
    margin: 0 0 2px;
    padding: 0;
    border: none;
    letter-spacing: -0.3px;
}

#camps-form-wrap .cf-subtitle {
    font-size: 16px;
    color: #3a9bbf;
    font-weight: 700;
    margin: 0 0 4px;
    padding: 0;
    border: none;
    text-transform: uppercase;
}

#camps-form-wrap .cf-phone {
    font-size: 13px;
    margin: 0 0 2px;
}

#camps-form-wrap .cf-intro {
    font-size: 13px;
    color: #555;
    margin: 0 0 10px;
}

/* ===== Fieldset + Legend ===== */
#camps-form-wrap .cf-fieldset {
    border: 1px solid #bbb;
    border-radius: 0;
    margin: 0 0 10px;
    padding: 12px 14px 10px;
}

#camps-form-wrap .cf-fieldset legend {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 6px;
    margin: 0;
    line-height: 1;
}

/* ===== Grid rows ===== */
#camps-form-wrap .cf-grid {
    display: flex;
    gap: 0;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

#camps-form-wrap .cf-g1 > input,
#camps-form-wrap .cf-g1 > div {
    flex: 1 1 100%;
}

#camps-form-wrap .cf-g2 > input,
#camps-form-wrap .cf-g2 > div {
    flex: 1 1 0%;
    min-width: 0;
}

#camps-form-wrap .cf-g3 > input,
#camps-form-wrap .cf-g3 > div {
    flex: 1 1 0%;
    min-width: 0;
}

/* ===== Inputs ===== */
#camps-form-wrap input[type="text"],
#camps-form-wrap input[type="email"],
#camps-form-wrap input[type="tel"],
#camps-form-wrap input[type="number"],
#camps-form-wrap select {
    display: block;
    width: 100%;
    height: 28px;
    border: 1px solid #999;
    border-radius: 0;
    padding: 3px 7px;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #fff;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.15s;
    line-height: 1.3;
}

#camps-form-wrap input[type="text"]:focus,
#camps-form-wrap input[type="email"]:focus,
#camps-form-wrap input[type="tel"]:focus,
#camps-form-wrap select:focus {
    border-color: #3a9bbf;
    box-shadow: 0 0 0 1px rgba(58,155,191,0.2);
}

#camps-form-wrap input::placeholder {
    color: #777;
    font-size: 13px;
    opacity: 1;
}

#camps-form-wrap select {
    height: 30px;
    padding: 3px 7px;
    cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 8px center;
    padding-right: 26px;
}

/* ===== Gender box ===== */
#camps-form-wrap .cf-gender-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #999;
    height: 28px;
    padding: 0 8px;
    background: #fff;
    white-space: nowrap;
    font-size: 13px;
}

#camps-form-wrap .cf-gender-box strong {
    font-size: 13px;
    font-weight: 700;
    margin-right: 2px;
}

#camps-form-wrap .cf-gender-box label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

/* ===== Radio + Checkbox base ===== */
#camps-form-wrap input[type="radio"],
#camps-form-wrap input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

#camps-form-wrap label {
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

/* ===== Inline radios ===== */
#camps-form-wrap .cf-inline-radios {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
}

#camps-form-wrap .cf-inline-radios label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== Camp Selection ===== */
#camps-form-wrap .cf-note {
    font-size: 13px;
    margin: 0 0 8px;
}

#camps-form-wrap .cf-camp-group {
    margin-bottom: 10px;
}

#camps-form-wrap .cf-group-title {
    font-size: 17px;
    font-weight: 400;
    color: #3a9bbf;
    margin: 6px 0 8px;
    padding: 0;
    border: none;
    letter-spacing: -0.2px;
}

#camps-form-wrap .cf-camp-check {
    display: inline;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    cursor: pointer;
    margin-right: 8px;
}

#camps-form-wrap .cf-camp-check input[type="checkbox"] {
    margin-right: 3px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

#camps-form-wrap .cf-camp-check span {
    vertical-align: middle;
}

/* ===== Permissions ===== */
#camps-form-wrap .cf-perm-text {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 4px;
    line-height: 1.5;
    color: #333;
}

#camps-form-wrap .cf-tshirt-row {
    font-size: 13px;
    margin: 6px 0 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

#camps-form-wrap .cf-tshirt-row label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 2px;
}

/* ===== Payment options (JS rendered) ===== */
#camps-form-wrap .cf-pay-option {
    margin-bottom: 8px;
}

#camps-form-wrap .cf-pay-option > label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

#camps-form-wrap .cf-pay-detail {
    padding-left: 22px;
    font-size: 13px;
    color: #444;
    font-weight: 600;
    margin-top: 1px;
}

#camps-form-wrap #cf-late-notice {
    background: #fff8e1;
    border: 1px solid #f0c040;
    padding: 6px 10px;
    font-size: 13px;
    color: #7a5c00;
    margin: 6px 0;
}

#camps-form-wrap #cf-pay-later-msg {
    background: #f0f7f0;
    border-left: 3px solid #27ae60;
    padding: 7px 12px;
    font-size: 13px;
    color: #333;
    margin: 6px 0;
}

/* ===== Payment details ===== */
#camps-form-wrap .cf-amount {
    font-size: 14px;
    margin: 0 0 8px;
}

/* ===== Card fields ===== */
#camps-form-wrap #cf-card-fields {
    max-width: 500px;
}

/* ===== Submit ===== */
#camps-form-wrap .cf-submit-row {
    padding: 10px 0 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

#camps-form-wrap #cf-submit-btn {
    background: #fff;
    color: #333;
    border: 1px solid #999;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    transition: background 0.15s;
    height: 32px;
    line-height: 1;
}

#camps-form-wrap #cf-submit-btn:hover {
    background: #f0f0f0;
}

#camps-form-wrap #cf-submit-btn:disabled {
    background: #ddd;
    color: #888;
    cursor: not-allowed;
}

#camps-form-wrap #cf-loading {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* ===== Errors / Success ===== */
#camps-form-wrap #cf-errors {
    background: #fdf0f0;
    border: 1px solid #e0b0b0;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #8b1a1a;
}

#camps-form-wrap #cf-errors ul {
    margin: 4px 0 0;
    padding-left: 18px;
    list-style: disc;
}

#camps-form-wrap #cf-errors li {
    margin-bottom: 3px;
}

#camps-form-wrap #cf-success {
    background: #edf7ef;
    border: 1px solid #b2d9b8;
    padding: 14px 18px;
    font-size: 14px;
    color: #155724;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    #camps-form-wrap .cf-fieldset {
        padding: 10px 10px 8px;
    }

    #camps-form-wrap .cf-grid {
        flex-direction: column;
        gap: 3px;
    }

    #camps-form-wrap .cf-g2 > input,
    #camps-form-wrap .cf-g3 > input,
    #camps-form-wrap .cf-g2 > div,
    #camps-form-wrap .cf-g3 > div {
        flex: 1 1 100%;
    }

    #camps-form-wrap .cf-gender-box {
        width: 100%;
    }

    #camps-form-wrap .cf-tshirt-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    #camps-form-wrap .cf-camp-check {
        display: flex;
        align-items: flex-start;
        gap: 5px;
    }
}
