/* Modern Ninja Forms Styling */

/* Form Container */
.nf-form-cont {
    border-radius: 12px;
}

/* Field Layout */
.nf-field-container {
    margin-bottom: 1em !important;
}
nf-cells {
    display: flex;
    column-gap: 1.2em;
    flex-direction: row;
    flex-wrap: nowrap;
}
.select2-container--open {
    z-index: 9999 !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: 700;
    padding-right: 1em;
}
.nf-input-limit{
    margin-top: 0px !important;
}
/* Labels */
.nf-field-label label {
    font-weight: 500;
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Required Symbol */
.ninja-forms-req-symbol {
    color: #dc2626;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* Input Fields */
.nf-field-element input[type="text"],
.nf-field-element input[type="email"],
.nf-field-element input[type="tel"],
.nf-field-element textarea,
.nf-field-element select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    font-size: 1rem;
    line-height: 1.5;
}

/* Input Focus States */
.nf-field-element input:focus,
.nf-field-element textarea:focus,
.nf-field-element select:focus {
    outline: none;
    border-color: #60a5fa;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}
.nf-form-content .enable-select2 .list-select-wrap > div div { display: none; }

/* Enhanced Select Dropdown Styling */
.nf-field-element select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    cursor: pointer;
    color: #374151;
}

.nf-field-element select:hover {
    border-color: #9ca3af;
    background-color: #ffffff;
}

.nf-field-element select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #ffffff;
}

/* Multi-select Styling */
.nf-field-element select[multiple] {
    padding: 0.5rem;
    background-image: none;
    min-height: 120px;
}

.nf-field-element select[multiple] option {
    padding: 0.5rem;
    margin: 2px 0;
    border-radius: 4px;
}

.nf-field-element select[multiple] option:checked {
    background: #2563eb linear-gradient(0deg, #2563eb 0%, #2563eb 100%);
    color: #ffffff;
}

/* Disabled State Styling */
.nf-field-element select:disabled,
.nf-field-element input:disabled,
.nf-field-element textarea:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* List Layouts */
.list-checkbox-wrap .nf-field-element li,
.list-radio-wrap .nf-field-element li {
    margin-bottom: 0.5rem !important;
}


/* Placeholder Text Styling */
.nf-field-element input::placeholder,
.nf-field-element textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Submit Button */
.submit-container input[type="submit"] {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-container input[type="submit"]:hover {
    background-color: #1d4ed8;
}

.submit-container input[type="submit"]:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Error States */
.nf-error .nf-field-element input,
.nf-error .nf-field-element textarea,
.nf-error .nf-field-element select {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.nf-error-msg {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
.label-above .nf-field-label {
    margin-bottom: 5px;
}
/* Success Message */
.nf-response-msg {
    padding: 1rem;
    border-radius: 8px;
    background-color: #ecfdf5;
    color: #065f46;
    margin-bottom: 1.5rem;
}

/* Required Fields Notice */
.nf-form-fields-required {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nf-form-cont {
        padding: 1em;
    }
    nf-cells {
    flex-direction: column;
}
    .submit-container input[type="submit"] {
        width: 100%;
    }
}


/* Select2 Main Container */
.nf-form-layout .select2-container .select2-selection--single {
    height: 48px;
    padding: 0.375rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: all 0.2s ease;
}

/* Select2 Rendered Text */
.nf-form-layout .select2-container .select2-selection--single .select2-selection__rendered {
    color: #374151;
    line-height: 2.2;
    padding-left: 1rem;
    font-size: 1rem;
}

/* Select2 Arrow */
.nf-form-layout .select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px;
    width: 30px;
    right: 6px;
}

.nf-form-layout .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: #374151 transparent transparent transparent;
    border-width: 6px 4px 0 4px;
}

/* Select2 Dropdown */
.nf-form-layout .select2-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

/* Select2 Search Box */
.nf-form-layout .select2-search--dropdown {
    padding: 8px;
}

.nf-form-layout .select2-search--dropdown .select2-search__field {
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    width: 100%;
}

.nf-form-layout .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Select2 Options */
.nf-form-layout .select2-results__option {
    padding: 8px 16px;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.nf-form-layout .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #2563eb;
    color: white;
}

.nf-form-layout .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e5e7eb;
    color: #374151;
}

/* Select2 States */
.nf-form-layout .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #60a5fa;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.nf-form-layout .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #60a5fa;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Select2 Disabled State */
.nf-form-layout .select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Hide original select element when Select2 is enabled */
.nf-form-content .enable-select2 .list-select-wrap > div div {
    display: none;
}

/* Newsletter signup checkbox styling */
.nf-form-content .checkbox-wrap.field-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.nf-form-content .checkbox-wrap .nf-field-label {
    order: 2;
    margin-bottom: 0;
    padding-left: 1em;
}

.nf-form-content .checkbox-wrap .nf-field-element {
    order: 1;
    margin: 8px 0;
}

.nf-form-content .checkbox-wrap .nf-field-description {
    order: 3;
    color: #6b7280;
    margin-top: 4px;
    margin-right: 0%;
    font-size: 0.95rem;
}
.nf-multi-cell .nf-cell {
    padding: 0px !important;
}
.nf-field-container {
    /* padding: 0px 2em 0px 0px; */
}

.nf-field-container.hidden-container {
    margin: 0px !important;
}

