.form-section {
    padding: 175px 0;
    background: #24589A;
    position: relative;
    overflow: clip;
    border-radius: 0 0 200px 200px;
}

.form-section .animation-wrapper{
    width: 100%;
}

.form-section__background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: luminosity;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.form-section .container {
    position: relative;
    z-index: 2;
}

.form-section__header {
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.form-section__title {
    color: #F2EE1A;
    font-size: 48px;
    font-weight: 500;
    margin: 0 auto 25px !important;
    line-height: 1.2;
    width: 100%;
    max-width: 100%;
}

.form-section__text {
    font-size: 30px;
    line-height: 1.5;
    color: #fff;
    max-width: 1080px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    margin-bottom: 35px;
}

.form-section__text p {
    margin-bottom: 20px;
}

.form-section__text p:last-child {
    margin-bottom: 0;
}

.label-above .nf-field-label{
    display: none;
}

.form-section__form-container {
    width: 100%;
    max-width: 925px;
    margin: 0 auto;
    background: transparent;
    padding: 0px;
    position: relative;
    z-index: 2;
}

.form-section__fallback {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Ninja Forms Styling Overrides */
.form-section .nf-form-wrap {
    margin: 0;
}

.form-section .nf-form-fields-required {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.form-section .nf-field-container {
    margin-bottom: 0px !important;
}

.form-section .nf-field-label label {
    font-weight: 500;
    color: #222B6B;
    margin-bottom: 8px;
    display: block;
    font-size: 16px;
}

.form-section .ninja-forms-field {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Founders Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    border: 0;
    border-bottom: 2px solid #FFF;
    border-radius: 0;
    font-size: 30px;
    line-height: 1.5;
    transition: border-color 300ms ease, box-shadow 300ms ease;
    background-color: transparent;
    color: #FFF !important;
    
}

.form-section .ninja-forms-field:focus {
    outline: none;
    border-color: #05ACDC;
}

.form-section .ninja-forms-field[type="textarea"] {
    min-height: 120px;
    resize: vertical;
}

.form-section .nf-field-element select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.form-section .nf-field-element input[type="checkbox"],
.form-section .nf-field-element input[type="radio"] {
    width: auto;
    margin-right: 8px;
    accent-color: #05ACDC;
}
.nf-error.listimage-wrap .nf-field-element ul, .nf-error .ninja-forms-field{
    border: 0 !important;
    border-bottom: 2px solid #F2EE1A !important;
}

.form-section .nf-error-msg{
    color: #FFF;
}

.form-section .nf-error-msg {
    color: #FFF;
    font-size: 14px;
    margin-top: 4px;
}

.form-section .nf-form-submit {
    text-align: center;
    margin-top: 60px;
}

.form-section .ninja-forms-field[type="submit"] {
    display: inline-block;
    padding: 20px 50px;
    background-color: #F2EE1A;
    color: #222B6B !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 24px;
    border: none;
    border-radius: 0px 0px 50px 50px;
    transition: all 300ms ease;
    white-space: nowrap;
    letter-spacing: 0;
    cursor: pointer;
    width: auto;
    width: 100%;
}

.form-section .ninja-forms-field[type="submit"]:hover {
    background-color: #36C166;
    color: #fff !important;
    border-radius: 50px;
}

.form-section .ninja-forms-field[type="submit"]:focus {
    outline: 2px solid #222B6B;
    outline-offset: 2px;
}

.nf-before-form-content{
    display: none;
}

/* Success/Error Messages */
.form-section .nf-response-msg {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.form-section .nf-success .nf-response-msg {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-section .nf-error .nf-response-msg {
    color: #F2EE1A;
    border: 2px solid #F2EE1A;

}

nf-fields-wrap{
    display: flex;
    flex-wrap: wrap;
    gap: 30px 60px;
}
nf-field{
    width: 100%;
}

nf-field:nth-child(-n+4) {
    width: calc(50% - 30px);
}

/* Responsive Design */
@media (max-width: 1440px) {
    .form-section {
        padding: 100px 0;
        border-radius: 0 0 150px 150px;
    }
    .form-section .ninja-forms-field[type="submit"] {
        padding: 18px 35px;
        font-size: 22px;
    }
    .form-section__text {
        max-width: 910px;
    }
    .form-section__text, .form-section .ninja-forms-field {
        font-size: 26px;
    }
}

@media (max-width: 1194px) {
    .form-section__text {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {

    .form-section {
        border-radius: 0 0 100px 100px;
    }

    nf-fields-wrap{
        gap: 15px 60px;
    }
    .form-section__text{
        margin-bottom: 0px !important;
    }
    .form-section__text, .form-section .ninja-forms-field {
        font-size: 24px;
    }

    .form-section__form-container {
        padding-top: 30px;
    }
    
    .form-section .ninja-forms-field[type="submit"] {
        padding: 15px 40px;
        font-size: 20px;
        border-radius: 0px 0 35px 35px;
    }
    
    .form-section .nf-form-submit {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .form-section {
        padding: 60px 0;
        border-radius: 0 0 80px 80px;
    }
    nf-field{
        width: 100% !important;
    }
    .form-section__text{
        margin-bottom: 35px !important;
    }
    .form-section__text, .form-section .ninja-forms-field {
        font-size: 1.1rem;
    }
    .form-section {
        padding: 60px 0;
    }
    
    .form-section__form-container {
        padding: 0px;
    }
    
    .form-section .ninja-forms-field[type="submit"] {
        font-size: 1.1rem;
        padding: 14px 28px;
        min-width: 180px;
        border-radius: 0px 0 25px 25px;
    }
    
    .form-section .nf-form-submit {
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    
    .form-section .ninja-forms-field {
        padding: 10px 14px;
        font-size: 15px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .form-section .ninja-forms-field,
    .form-section .ninja-forms-field[type="submit"] {
        transition: none;
    }
}

.form-section .ninja-forms-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1; /* Firefox */
}

.form-section .ninja-forms-field::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-section .ninja-forms-field::-moz-placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.form-section .ninja-forms-field:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.7);
} 