/*
 * WJTL Birthday Form Styles
 * Enqueued by birthday-functions.php only on pages with [wjtl_birthday]
 */

.bday-form-wrap {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 15px;
    color: #111;
    max-width: 520px;
    padding:  32px 0;
}

.bday-form-wrap h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #111;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
}

/* ---- Notices ---- */

.bday-form-wrap .notice {
    background: #f0f8e8;
    border-left: 4px solid #7cc245;
    padding: 30px 32px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
}

.bday-form-wrap .notice.duplicate {
    background: #fff8e8;
    border-left-color: #e0a000;
}

.bday-form-wrap .notice.error {
    background: #fff0f0;
    border-left-color: #cc0000;
}

.bday-form-wrap .notice a {
    color: #4a9023;
    font-weight: 600;
    text-decoration: none;
}

.bday-form-wrap .notice a:hover {
    text-decoration: underline;
}

.bday-contact-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #777;
    font-weight: 400;
}

.bday-contact-link:hover {
    color: #4a9023;
}

/* ---- Fields ---- */

.bday-field {
    margin-bottom: 14px;
}

.bday-field label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #000;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}

.bday-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #777;
    font-size: 12px;
}

.bday-field input[type="text"],
.bday-field input[type="email"],
.bday-field input[type="tel"] {
    width: 100%;
    max-width: 340px;
    padding: 7px 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bday-field input[type="text"]:focus,
.bday-field input[type="email"]:focus,
.bday-field input[type="tel"]:focus {
    border-color: #7cc245;
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 194, 69, 0.2);
}

/* ---- Date selects -------------------- */

.date-selects {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr 1fr;
    flex-wrap: wrap;
}

main .bday-form-wrap .date-selects select {
    height: 36px;
    padding: 0 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.15s;
}

.date-selects select:focus {
    border-color: #7cc245;
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 194, 69, 0.2);
}

/* ---- Radio buttons ---- */

.relation-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.relation-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 14px;
    color: #111;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.relation-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: #7cc245;
}

/* ---- reCAPTCHA ---- */

.g-recaptcha {
    margin: 16px 0 8px 0;
}

/* ---- Submit button ---- */

.bday-submit {
    display: inline-block;
    margin-top: 8px;
    background: #7cc245;
    color: #fff;
    border: none;
    padding: 11px 36px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.bday-submit:hover,
.bday-submit:focus {
    background: #4a9023;
    outline: none;
}

.bday-submit:focus-visible {
    box-shadow: 0 0 0 3px rgba(74, 144, 35, 0.4);
}
