.epif-form-section {
    margin-bottom: 30px;
}

.epif-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.epif-form-field {
    display: flex;
    flex-direction: column;
}

.epif-form-field.large {
    grid-column: span 1;
}

.epif-form-field.full-width {
    grid-column: 1 / -1;
}

.epif-form-field.span-2 {
    grid-column: span 2;
}

.epif-form-field label {
    font-size: 14px;
    color: #10223A;
    margin-bottom: 8px;
    font-weight: 600;
}

.epif-form-field label .required {
    color: #e74c3c;
    font-weight: normal;
}

.epif-form-field input[type="text"],
.epif-form-field input[type="email"],
.epif-form-field input[type="tel"],
.epif-form-field input[type="url"],
.epif-form-field input[type="number"],
.epif-form-field input[type="date"],
.epif-form-field select,
.epif-form-field textarea {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background-color: #E6ECEE;
    font-size: 16px;
    color: #495057;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Custom styles for the select dropdown */
.epif-form-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('../icons/Icon-chevron-down.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 40px !important;
}


/* Styles for the date input with icon */
.epif-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.epif-input-with-icon input.epif-datepicker {
    padding-right: 45px !important;
}

.epif-input-with-icon img {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 18px;
    height: 18px;
    opacity: 0.6;
}


.epif-form-field input:focus,
.epif-form-field select:focus,
.epif-form-field textarea:focus {
    outline: none;
    border-color: #4e73df;
    background-color: #fff;
}

.epif-form-field textarea {
    border-radius: 15px;
}

.epif-group-title {
    font-size: 14px;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 600;   
    padding-bottom: 10px;
}

.epif-group-title .required {
     color: #e74c3c;
     font-weight: normal;
}

.epif-checkbox-group-wrapper {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #D4E4FE;
}

.epif-checkbox-group h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #10396F;
    font-size: 15px;
    font-weight: bold;
}
.epif-checkbox-group:first-child {
    margin-bottom: 20px;
}


.epif-checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #010103;
    cursor: pointer;
}

.epif-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.epif-form-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.epif-button {
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background-color: #2e59d9;
    color: white;
    transition: background-color 0.2s, transform 0.1s;
}

.epif-button:hover {
    background-color: #264abf;
}

.epif-button:active {
    transform: translateY(1px);
}

#epif-form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

#epif-form-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#epif-form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


@media (max-width: 768px) {
    .epif-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .epif-form-grid {
        grid-template-columns: 1fr;
    }
}

