/* Form group wrapper */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

/* Inputs and textarea */
input,
textarea {
    border-radius: 3px;
    border: 1px solid #e1e1e1;
    width: 100%;
    padding: 15px;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    box-sizing: border-box;
}
textarea {
    height: 140px;
    resize: vertical;
}

/* Hidden validation message container */
[data-validation-msgs-wrapper] {
    display: none;
}

/* Error message styling */
.alert-danger,
[data-for-error] {
    font-weight: 400;
    border: 0;
    padding: 5px;
    color: #fff;
    background-color: #eb162b;
    font-size: 12px;
    border-radius: 0;
    margin-top: 0.25rem;
}

/* Validation border colors */
[data-validation-status="failed"] {
    border: 3px solid #eb162b !important;
}
[data-validation-status="passed"] {
    border: 3px solid #41ad48 !important;
}

/* Validation rule status colors */
[data-rule-status="passed"] {
    color: green;
}
[data-rule-status="failed"] {
    color: #eb162b;
}
[data-rule-status="unpassed"] {
    color: #8b4513;
}

/* Check icon positioning */
[data-check-icon] {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
    line-height: 1;
    color: #41ad48;
    display: none;
    align-items: center;
    justify-content: center;
}
[data-check-icon] img {
    max-width: 35px;
}
[data-check-icon="active"] {
    display: flex;
}
[data-check-icon="inactive"] {
    display: none;
}

/* Submit button */
.main-form-btn {
    border-radius: 3px;
    background-color: #459c55;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 53px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase;
    border: 0;
    transition: box-shadow 0.3s ease;
    width: 100%;
}
.main-form-btn:hover {
    box-shadow: 0.3px 4px 29px 0 rgba(50, 35, 65, 0.09);
}

/* Responsive font sizing */
@media screen and (max-width: 767px) {
    input,
    textarea {
        font-size: 16px;
    }
    .main-form-btn {
        font-size: 18px;
    }
}
