﻿.line {
    display: flex;
    flex-wrap: wrap;
}
.line > * {
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}
.box-6 {
    width: 100%;
    flex: 0 0 auto;
}
@media (min-width: 568px) {
    .box-6 {
        width: 50%;
    }
}
@media (min-width: 992px) {
    .box-6 {
        width: 100%;
    }
}
@media (min-width: 1280px) {
    .box-6 {
        width: 50%;
    }
}

.form-section {
    --field_height: 36px;
    --border_color: #d1d5db;
    --bg_input: #e6f6fb;
    --color_active: #054a91;

    width: 100%;
    min-height: calc(100vh - 170px);
}

.form-section a {
    /* font-weight: 700; */
    text-decoration: underline;
}
/* .form-section a:hover {
    text-decoration: underline;
} */
.form-section > div {
    padding: 24px;
}
.form-container {
    border-radius: 24px;
    background-color: var(--color_white);
}
.section-left {
    height: 100%;
    background: url(../image/banner.webp) no-repeat top center;
    background-size: cover;

    display: none;
}

@media (min-width: 992px) {
    .form-section {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
    }
    .section-left {
        display: block;
        width: 50%;
    }
    .section-right {
        width: 50%;
    }
}

.form-select-container {
    display: flex;
    justify-content: space-between;
    gap: 3%;
}

.form-select-container > select {
    width: 33%;
    text-transform: capitalize;
}
.form-group {
    width: 100%;
    margin-bottom: 12px;
}
.form-radio {
    width: 100%;
    height: var(--field_height);
    display: inline-flex;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 12px;
}

.form-radio label {
    background: var(--bg_input);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    border-radius: 5px;
    cursor: pointer;
    padding: 0 10px;
    border: 1px solid var(--border_color);
    transition: all 0.3s ease;
}

.form-radio label .dot {
    height: 20px;
    width: 20px;
    background: #d9d9d9;
    border-radius: 50%;
    position: relative;
}

.form-radio label .dot:before {
    position: absolute;
    content: "";
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    background: var(--color_active);
    border-radius: 50%;
    opacity: 0;
    transform: scale(1.5);
    transition: all 0.3s ease;
}

.form-radio input {
    display: none;
}

#option-1:checked ~ .option-1, #option-2:checked ~ .option-2 {
    color: var(--color_white);
    background: var(--color_active);
}
#option-1:checked:checked ~ .option-1 .dot, #option-2:checked:checked ~ .option-2 .dot{
  background: #fff;
}
#option-1:checked:checked ~ .option-1 .dot::before, #option-2:checked:checked ~ .option-2 .dot::before{
  opacity: 1;
  transform: scale(1);
}

.form-check {
    font-size: 12px;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.form-check input[type="checkbox"] {
    display: none;
    visibility: hidden;
}

.form-check label {
    display: inline-block;
}

.form-check label.ctlr {
    position: relative;
    top: 1px;
    width: 17px;
    height: 17px;
    border: 1px solid #c8ccd4;
    border-radius: 3px;
    vertical-align: middle;
    transition: background 0.1s ease;
    cursor: pointer;
}
.form-check label.ctlr:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 3px;
    height: 8px;
    opacity: 0;
    transform: rotate(45deg) scale(0);
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transition: all 0.3s ease;
    transition-delay: 0.15s;
}
.form-check label.label {
    margin-left: 5px;
    vertical-align: middle;
    cursor: pointer;
    width: calc(100% - 29px);
}
.form-check input[type="checkbox"]:checked ~ label.ctlr {
    border-color: transparent;
    background: var(--color_layout);
    animation: jelly-42 0.6s ease;
}
.form-check input[type="checkbox"]:checked ~ label.ctlr:after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.form-label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-input, .form-select {
    background-color: var(--bg_input);
    font-size: 16px;
    padding-left: 10px;
    width: 100%;
    outline: none;
    border-radius: 6px;
    border: 1px solid var(--border_color);
    height: var(--field_height);
    line-height: var(--field_height);
}

.form-section .form-button {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px;
}

.form-section .form-button button {
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 4px;
    width: 50%;
    cursor: pointer;
}

.button-submit {
    background: var(--linear_gradient);
    animation: shake-button 6s linear infinite;
}
.button-disabled {
    background-color: #e2e0e0;
}

.is-invalid {
    border-color: var(--color_danger);
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    background-color: transparent;
}
.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
input.is-invalid + span, .form-group span {
    color: var(--color_danger);
}

.form-group span {
    max-height: 0;
    opacity: 0;
    transition: all .3s ease-in-out;
}

.alert {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    padding: 0 1rem;
    border-radius: 5px;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.alert p {
    margin: 0.5rem;
}
  
.alert.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}
  
.alert.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@keyframes shake-button {
    0%, 16%, 100% {
        transform: translateZ(0);
    }
    1.6%, 4.8%, 8%, 11.2%, 14.4% {
        transform: translate3d(-2px, 0, 0);
    }
    3.2%, 6.4%, 9.6%, 12.8% {
        transform: translate3d(2px, 0, 0);
    }
}

@keyframes checkbox {
    from {
      transform: scale(1, 1);
    }
    30% {
      transform: scale(1.25, 0.75);
    }
    40% {
      transform: scale(0.75, 1.25);
    }
    50% {
      transform: scale(1.15, 0.85);
    }
    65% {
      transform: scale(0.95, 1.05);
    }
    75% {
      transform: scale(1.05, 0.95);
    }
    to {
      transform: scale(1, 1);
    }
}