/* SLS-2062 GDS form styling */

.digitalplace-wrapper form label, .digitalplace-wrapper form p.ddm-label, .digitalplace-wrapper form legend.lfr-ddm-legend {
  color: inherit !important; 
  font-size: 1.5rem;
}

.digitalplace-wrapper form label:has(~ .form-feedback-group), .digitalplace-wrapper form p.ddm-label:has(~ .form-feedback-group), .digitalplace-wrapper form fieldset:has(~ .form-feedback-group) legend.lfr-ddm-legend {
  margin-bottom: 16px !important;
}

.digitalplace-wrapper form .form-group.has-error label:has(~ .form-feedback-group), .digitalplace-wrapper form .form-group.has-error p.ddm-label:has(~ .form-feedback-group), .digitalplace-wrapper form .form-group.has-error fieldset:has(~ .form-feedback-group) legend.lfr-ddm-legend {
    color: inherit !important;
    margin-bottom: 16px !important;
}

.digitalplace-wrapper form .form-feedback-group {
    position: unset;
    top: 35px;
    font-size: 1.1875rem;
    font-weight: 400;
    color: #505a5f;
    font-family: GDS Transport, arial, sans-serif;
}

.custom-radio .custom-control-label::before {
    height: 40px;
    width: 40px;
    margin-right: 15px;
    border-width: 2px;
    border-color: black;
    top: 2px;
    left: 2px;
}

.custom-control.custom-radio {
    margin-bottom: 1.8rem;
}

.custom-control.custom-radio:last-child {
    margin-bottom: 1rem;
}

.lfr-ddm-form-container .custom-control-label-text {
    color: initial !important;
    display: block;
    padding-top: 13px;
}

.custom-checkbox .custom-control-label::before {
    height: 40px;
    width: 40px;
    margin-right: 15px;
    border-width: 2px;
    border-color: black;
    top: 2px;
    left: 2px;
}

.custom-control.custom-checkbox {
    margin-bottom: 2rem;
}

.custom-control.custom-checkbox:last-of-type {
    margin-bottom: 1rem;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: black;
    border-color: white;
    border-width: 10px;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
    height: 40px;
    width: 40px;
    border: 2px solid black;
    border-radius: 50%;
    background-image: none;
    top: 2px;
    left: 2px;
}

.custom-radio .custom-control-input:focus ~ .custom-control-label::after {
    border: 4px solid black;
}

.custom-radio .custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    background-image: none;
    height: 44px;
    width: 44px;
    border: 2px solid black;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: inherit;
    border-color: black;
}

.custom-checkbox .custom-control-input:focus ~ .custom-control-label::before {
    border: 4px solid black;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    background-image: none;
    top: 13px;
    left: 10px;
    width: 23px;
    height: 12px;
    transform: rotate(-45deg);
    border: solid;
    border-width: 0 0 5px 5px;
    border-top-color: transparent;
    opacity: 1;
}

.custom-control .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.125rem #fd0, 0 0 0 0.25rem #fd0;
}

.digitalplace-wrapper .btn:focus, .digitalplace-wrapper .button:focus, .digitalplace-wrapper button:focus, .digitalplace-wrapper input:focus, .digitalplace-wrapper textarea:focus, .digitalplace-wrapper a:focus {
    outline: 3px solid #fd0 !important;
    outline-offset: 0;
    box-shadow: inset 0 0 0 2px !important;
}