/* ===================================
   34. FORM LAYOUT
=================================== */

.form-group {
    margin-bottom: 15px;
}

.formContainer {
    padding: 40px 20px;

    text-align: center;

    background: rgba(255,255,255,.6);
}

.formContainer form {
    max-width: 650px;
    margin-inline: auto;
}

.formContainer .titleContainer {
    margin-bottom: 40px;
}

.formContainer .titleContainer .far {
    font-size: 70px;
    color: #ff0000;

    margin-bottom: 20px;
}

.formContainer .titleContainer h1 {
    margin-bottom: 10px;
}

.formContainer a {
    color: #333;
    font-size: 14px;
}

.formContainer a:hover {
    color: #ff0000;
}

@media (min-width: 768px) {

    .formContainer {
        padding: 80px 40px;
    }

    .formContainer .titleContainer h1 {
        font-size: 40px;
    }
}

/* ===================================
   35. FORM FIELDS
=================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea {
    width: 100%;

    padding: 15px 15px 15px 35px;

    border: 0;
    border-bottom: 1px solid #666;

    background: transparent;

    color: #333;

    font: 300 16px/1.6 "Didact Gothic", sans-serif;

    transition: .3s;
}

textarea {
    min-height: 120px;
    resize: none;
}

input:focus,
textarea:focus {
    outline: none;

    border-color: #ff0000;
    color: #ff0000;
}

/* ===================================
   FIELD ICONS
=================================== */

.formContainer .row {
    position: relative;
}

.formContainer .fas {
    position: absolute;

    top: 30px;
    left: 0;

    transform: translateY(-50%);

    color: #333;

    transition: .3s;
}

input:focus + .fas,
textarea:focus + .fas {
    color: #ff0000;
}

/* ===================================
   PLACEHOLDERS
=================================== */

::placeholder {
    color: #333;
    opacity: 1;
}

/* ===================================
   FORM BUTTON
=================================== */

.formContainer .btn {
    width: 100%;

    padding: 15px;

    border: 0;

    background: #ff0000;
    color: #fff;

    cursor: pointer;

    text-transform: capitalize;
}

.formContainer .btn:hover {
    background: #cc0000;
}

/* ===================================
   36. CUSTOM RADIO BUTTONS
=================================== */

.customRadio input,
.formContainerCustom input[type="radio"] {
    position: absolute;
    left: -9999px;
}

.customRadio label,
.formContainerCustom input[type="radio"] + label {
    position: relative;

    padding-left: 35px;

    cursor: pointer;
}

.customRadio label::before,
.formContainerCustom input[type="radio"] + label::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 22px;
    height: 22px;

    border: 2px solid #ff0000;
    border-radius: 50%;

    background: #fff;
}

.customRadio label::after,
.formContainerCustom input[type="radio"] + label::after {
    content: "";

    position: absolute;

    left: 6px;
    top: 6px;

    width: 10px;
    height: 10px;

    background: #ff0000;

    border-radius: 50%;

    opacity: 0;
    transform: scale(2);

    transition: .3s;
}

.customRadio input:checked + label::after,
.formContainerCustom input[type="radio"]:checked + label::after {
    opacity: 1;
    transform: scale(1);
}

/* ===================================
   37. CUSTOM CHECKBOXES
=================================== */

.customCheckbox input,
.formContainerCustom input[type="checkbox"] {
    position: absolute;
    left: -9999px;
}

.customCheckbox label,
.formContainerCustom input[type="checkbox"] + label {
    position: relative;

    padding-left: 35px;

    cursor: pointer;
}

.customCheckbox label::before,
.formContainerCustom input[type="checkbox"] + label::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 22px;
    height: 22px;

    border: 2px solid #ff0000;
    border-radius: 4px;

    background: #fff;
}

.customCheckbox label::after,
.formContainerCustom input[type="checkbox"] + label::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 5px;

    width: 10px;
    height: 6px;

    border-width: 0 0 2px 2px;
    border-style: solid;
    border-color: transparent transparent #fff #fff;

    opacity: 0;

    transform: rotate(-45deg) scale(2);

    transition: .3s;
}

.customCheckbox input:checked + label::before,
.formContainerCustom input[type="checkbox"]:checked + label::before {
    background: #ff0000;
}

.customCheckbox input:checked + label::after,
.formContainerCustom input[type="checkbox"]:checked + label::after {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

/* ===================================
   38. CUSTOM INPUT STYLES
=================================== */

.formContainerCustom input,
.formContainerCustom textarea {
    width: 100%;

    padding: 12px 15px;

    border: 1px solid #ccc;

    background: #fff;

    transition: .3s;
}

.formContainerCustom textarea {
    min-height: 150px;
}

.formContainerCustom input:hover,
.formContainerCustom textarea:hover,
.formContainerCustom input:focus,
.formContainerCustom textarea:focus {
    border-color: #ff0000;

    box-shadow: inset 0 0 0 1px #ff0000;

    outline: none;
}

/* ===================================
   39. CUSTOM SELECT
=================================== */

.customSelect .select,
.formContainerCustom .select {
    position: relative;

    height: 50px;

    border: 1px solid #ff0000;

    background: #fff;
}

.customSelect select,
.formContainerCustom select {
    width: 100%;
    height: 100%;

    padding: 0 50px 0 15px;

    border: 0;
    background: transparent;

    appearance: none;
}

.customSelect .select::before,
.formContainerCustom .select::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: 40px;

    background: #ff0000;
}

.customSelect .select::after,
.formContainerCustom .select::after {
    content: "";

    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    border-style: solid;
    border-width: 10px 7px 0;
    border-color: #fff transparent transparent;
}

/* ===================================
   40. TOGGLE SWITCH
=================================== */

.customToggle input {
    position: absolute;
    left: -9999px;
}

.customToggle label {
    position: relative;

    display: inline-block;

    width: 60px;
    height: 28px;

    border-radius: 50px;

    background: #f70000;

    cursor: pointer;
}

.customToggle label::before {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #fff;

    transition: .3s;
}

.customToggle input:checked + label::before {
    transform: translateX(32px);
}

/* ===================================
   41. BOOTSTRAP OVERRIDES
=================================== */

.checkbox,
.radio {
    display: inline-block;
}

.form-control {
    height: auto !important;

    border-radius: 0 !important;

    box-shadow: none !important;
}

/* ===================================
   42. ALERT POPUP
=================================== */

.AlertContainer {
    position: fixed;
    inset: 0;

    z-index: 1000;

    background: rgba(0,0,0,.3);
}

.AlertContainer .container {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 100%;
}

.AlertContainer .popupbox {
    max-width: 600px;

    padding: 2rem;

    background: #fff;

    text-align: center;

    border-radius: 40px;
}

.AlertContainer h2 {
    margin-bottom: 20px;
}

.AlertContainer p {
    margin-bottom: 20px;
}

.AlertContainer .btn {
    font-size: 18px;
}

/* ===================================
   43. GLOBAL OVERLAY
=================================== */

#mainOverlay {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 9999;

    background: rgba(0,0,0,.7);
}

/* ===================================
   44. AJAX POPUP PANEL
=================================== */

#ajaxHomepagePopup {
    position: fixed;

    top: 0;
    right: -100%;

    width: 100%;
    height: 100%;

    background: #fff;

    z-index: 99999;
}

#ajaxHomepagePopup .ajaxHomepagePopup_inner {
    height: 100%;
    padding: 20px;
}

#ajaxHomepagePopup .close {
    position: absolute;

    top: 10px;
    right: 10px;
}

#ajaxHomepagePopup .close a {
    color: #ff0000;
    font-size: 20px;
}

#mypopup {
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {

    #ajaxHomepagePopup {
        max-width: 900px;
    }
}

/* ===================================
   45. PORTFOLIO LIST
=================================== */

#portfolio-list {
    max-width: 900px;

    margin-inline: auto;

    list-style: none;
}

#portfolio-list li {
    margin-bottom: 10px;
}

#portfolio-list i {
    margin-right: 10px;
}

#portfolio-list a {
    font-weight: 700;
}

/* ===================================
   46. FEATURE CARDS
=================================== */

.upload-card,
.testimonial-card {
    max-width: 700px;

    margin: 40px auto;

    padding: 40px;

    background: #fff;

    border-radius: 20px;

    box-shadow: 0 5px 20px #ddd;
}

.upload-card {
    max-width: 600px;
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 80px;
    height: 80px;

    margin-inline: auto;

    border-radius: 50%;

    background: #cc0000;
    color: #fff;

    font-size: 35px;
}

.upload-icon {
    font-size: 70px;
    color: #cc0000;
}

.feature-card {
    background: #fff;

    padding: 35px;

    margin-bottom: 30px;

    border-radius: 20px;

    text-align: center;

    box-shadow: 0 5px 25px #ddd;

    transition: .3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.process-box {
    padding: 25px;
    text-align: center;
}

.process-box i {
    color: #cc0000;
    font-size: 45px;
}

.portfolio-card {
    overflow: hidden;

    margin-bottom: 30px;

    border-radius: 15px;

    background: #fff;

    box-shadow: 0 5px 20px #ddd;

    transition: .3s;
}

.portfolio-card:hover {
    transform: scale(1.05);
}

.portfolio-title {
    padding: 20px;

    font-size: 20px;
    font-weight: 700;
}

.testimonial-card i {
    font-size: 60px;
    color: #cc0000;
}

/* ===================================
   47. UTILITIES
=================================== */

.red {
    color: #cc0000;
}

/* ===================================
   48. SMALL DEVICES
=================================== */

@media (max-width: 480px) {

    .slider.home {
        min-height: 480px;
    }

    .upload-card,
    .testimonial-card {
        padding: 25px;
    }
}

@media (max-width: 350px) {

    .media-wrapper {
        flex-direction: column;
    }

    .media .image {
        width: 100%;
        height: 150px;
    }

    #ajaxHomepagePopup .ajaxHomepagePopup_inner {
        padding: 0;
    }

    #request .formContainer {
        padding: 12px !important;
    }
}