/* ==========================
   Young Person Form (Modern UI)
   ========================== */

.ypf-form-wrapper {
    max-width: 750px;
    margin: 40px auto;
    padding: 35px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Headings */
.ypf-form-wrapper h2 {
    margin-bottom: 18px;
    font-size: 22px;
    color: #333;
    font-weight: 700;
}

/* Alerts */
.ypf-error {
    background: #ffebee;
    border: 1px solid #f5c6cb;
    color: #b71c1c;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.ypf-success {
    background: #e6ffed;
    border: 1px solid #c8e6c9;
    color: #1b5e20;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Form fields */
.ypf-form .form-field {
    position: relative;
    margin-bottom: 26px;
}

.ypf-form input,
.ypf-form textarea {
    width: 100%;
    padding: 18px 14px 10px;
    font-size: 16px;
    background: #fafafa;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ypf-form input:focus,
.ypf-form textarea:focus {
    background: #fff;
    border-color: #0066cc;
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.25);
}

/* Floating Labels */
.ypf-form label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: #777;
    font-size: 15px;
    pointer-events: none;
    transition: .25s ease;
    background: transparent;
    padding: 0 4px;
}

.ypf-form input:focus + label,
.ypf-form textarea:focus + label,
.ypf-form input:not(:placeholder-shown) + label,
.ypf-form textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 13px;
    background: #fff;
    color: #0066cc;
}

/* reCAPTCHA spacing */
.captcha-wrapper {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* Submit Button */
.ypf-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    color: white;
    border: none;
    background: linear-gradient(135deg, #0077c8, #005fa3);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.ypf-submit-btn:hover {
    background: linear-gradient(135deg, #0090ff, #005a9e);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .ypf-form-wrapper {
        padding: 22px;
    }
}
