/* General wrapper styling */
.jlexp-wrapper,
.jlfam-wrapper {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    background-color: #E0E0E0;
    font-family: Arial, sans-serif;
}

/* Titles */
.jlexp-title {
    border: 2px solid #0074d9;
    background: #fff;
    padding: 18px 24px;
    font-weight: 700;
    font-size: 20px;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* Form fields */
.jlexp-field,
.jlfam-field {
    margin-bottom: 25px;
}

/* Desktop: inputs 50%, textarea full width */
.jlexp-field input,
.jlfam-field input {
    display: inline-block;
    width: 48% !important;
    margin-right: 4%;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px 20px;
    font-style: italic;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

.jlexp-field input:nth-child(2n),
.jlfam-field input:nth-child(2n) {
    margin-right: 0;
}

/* Textareas remain full width */
.jlexp-field textarea,
.jlfam-field textarea {
    width: 100%;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px 20px;
    font-style: italic;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    resize: none;
}

.jlexp-field textarea {
    min-height: 250px;
}

.jlfam-field textarea {
    min-height: 300px;
    background: #f7f7f7;
}

/* Buttons */
.jlexp-btn,
.jlfam-btn {
    width: 100%;
    font-weight: bold;
    font-size: 18px;
    padding: 16px 0;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.jlexp-btn {
    background: #FFD953;
    color: #111;
}

.jlexp-btn:hover {
    background: #f5c732;
}

.jlfam-btn {
    background: #1A1A1A;
    color: #fff;
}

.jlfam-btn:hover {
    background: #333;
}

/* Notes and response */
.jlexp-note,
.jlfam-note {
    margin-top: 15px;
    font-style: italic;
    font-size: 16px;
    color: #333;
}

.jlexp-response,
.jlfam-response {
    margin-top: 10px;
    font-size: 15px;
}

/* Intro text for family forms */
.jlfam-intro {
    font-size: 16px;
    line-height: 1.6;
    color: #111;
    margin-bottom: 25px;
}

/* Responsive breakpoints */
@media screen and (max-width: 1024px) {
    .jlexp-wrapper,
    .jlfam-wrapper {
        padding: 30px 15px;
    }

    .jlexp-btn,
    .jlfam-btn {
        font-size: 16px;
        padding: 14px 0;
    }
}

@media screen and (max-width: 768px) {
    .jlexp-field input,
    .jlfam-field input {
        width: 100%;
        margin-right: 0;
    }

    .jlexp-field textarea,
    .jlfam-field textarea {
        width: 100%;
    }

    .jlexp-field input,
    .jlfam-field input,
    .jlexp-field textarea,
    .jlfam-field textarea {
        font-size: 15px;
        padding: 10px 12px;
    }

    .jlexp-btn,
    .jlfam-btn {
        font-size: 15px;
        padding: 12px 0;
    }

    .jlfam-intro {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .jlexp-wrapper,
    .jlfam-wrapper {
        padding: 15px 10px;
    }

    .jlexp-field input,
    .jlfam-field input,
    .jlexp-field textarea,
    .jlfam-field textarea {
        font-size: 14px;
        padding: 8px 10px;
    }

    .jlexp-btn,
    .jlfam-btn {
        font-size: 14px;
        padding: 10px 0;
    }

    .jlfam-intro {
        font-size: 13px;
    }
}