.jaf-form-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #4a4a4a;
}

.jaf-intro {
    text-align: center;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 50px;
    color: #333;
}

.jaf-intro strong {
    color: var(--jaf-secondary, #8D161A);
}

.jaf-heading {
    color: var(--jaf-primary, #bfa15f);
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
}

.jaf-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.jaf-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.jaf-row.jaf-col-2>.jaf-field {
    flex: 1;
}

.jaf-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.jaf-field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

/* Material line input styling */
.jaf-field input[type="text"],
.jaf-field input[type="email"],
.jaf-field input[type="tel"] {
    border: none;
    border-bottom: 2px solid var(--jaf-primary, #bfa15f);
    padding: 8px 0;
    font-size: 16px;
    background: transparent;
    outline: none;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

.jaf-field input:focus {
    border-bottom-color: var(--jaf-secondary, #8D161A);
}

.jaf-field textarea {
    border: none;
    border-bottom: 2px solid var(--jaf-primary, #bfa15f);
    padding: 10px 0;
    font-size: 16px;
    background: transparent;
    resize: vertical;
    outline: none;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
}

.jaf-field textarea:focus {
    border-bottom-color: var(--jaf-secondary, #8D161A);
}

/* Checkboxes */
.jaf-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.jaf-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    color: #666;
    font-weight: normal;
}

/* Custom Checkbox */
.jaf-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.jaf-custom-check {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--jaf-primary, #bfa15f);
    border-radius: 2px;
    margin-right: 10px;
    background-color: transparent;
}

.jaf-checkbox-label input:checked~.jaf-custom-check {
    background-color: var(--jaf-primary, #bfa15f);
}

.jaf-custom-check:after {
    content: "";
    position: absolute;
    display: none;
}

.jaf-checkbox-label input:checked~.jaf-custom-check:after {
    display: block;
}

.jaf-checkbox-label .jaf-custom-check:after {
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* Submit Button */
.jaf-submit-btn {
    background-color: var(--jaf-button, #A88640);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-transform: capitalize;
    transition: opacity 0.3s;
    margin-top: 20px;
}

.jaf-submit-btn:hover {
    opacity: 0.9;
}

/* Messages */
.jaf-success-msg {
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-top: 20px;
}

.jaf-error-msg {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 20px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .jaf-row.jaf-col-2 {
        flex-direction: column;
    }

    .jaf-checkbox-grid {
        grid-template-columns: 1fr;
    }
}