#stamp-duty-calculator-modal, .show-sdc, .sdc .input-group::after, .sdc .input-group::before {
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.sdc .output { display: none; margin-top: 20px; clear: both; }
.sdc .explanation { display: none; margin-top: 10px; }

.sdc .toggle              { cursor: pointer; }
.sdc .toggle::before      { content: 'View'; }
.sdc .toggle.open::before { content: 'Hide'; }

#stamp-duty-calculator-modal {
    background: rgb(255,255,255); /* Fallback */
    background: rgba(255,255,255,0.75);
    cursor: pointer;
    height: 100vh;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    visibility: hidden;
    width: 100vw;
    z-index: 9999999999999999;
}

#stamp-duty-calculator-modal.active {
    opacity: 1;
    visibility: visible;
}

#stamp-duty-calculator-modal .modal-container {
    background: #000A86;
    color: #FFFFFF;
    cursor: default;
    display: inline-block;
    left: 50%;
    padding: 15px;
    position: relative;
    top: 50%;
    transform: translate(-50%, -50%);
}

.sdc-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-align: right;
}

.sdc .input-group { float: left; }
.sdc .input-group::after {
    content: '';
    height: 0px;
    background: #DA291C;
    width: 100%;
    display: block;
    bottom: 0;
    position: absolute;
}
.sdc .input-group::before {
    background: #DA291C;
    bottom: 1px;
    color: #FFFFFF;
    content: 'Please enter a value';
    display: block;
    font-size: 10px;
    left: 0;
    opacity: 0;
    padding: 0 8px;
    position: absolute;
    transform: translateY(100%);
    visibility: hidden;
}
.sdc.empty .input-group::before {
    opacity: 1;
    visibility: visible;
}
.sdc.empty .input-group::after {
    height: 2px;
    -webkit-animation: pulseIn .5s ease-in-out; /* Safari 4.0 - 8.0 */
    animation: pulseIn .5s ease-in-out;
}
@-webkit-keyframes pulseIn { 0% { height: 0px; } 50% { height: 6px; } 100% { height: 2px; } }
@keyframes         pulseIn { 0% { height: 0px; } 50% { height: 6px; } 100% { height: 2px; } }

.sdc .input-group-addon {
    line-height: 40px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    width: 35px;
    position: absolute;
}

.sdc input {
    border: none;
    line-height: 40px;
    height: 40px;
    padding: 0 10px 0 35px;
    color: #000000;
}

.sdc .result {
    font-size: 22px;
    margin: 0 0 20px 0;
    text-align: center;
}
.sdc .stampduty-output {
    font-size: 26px;
    font-weight: 600;
}

.sdc table { width: 100%; }
.sdc thead { background: rgba(255,255,255,0.5); }
.sdc th, .sdc td { padding: 5px; }
.sdc tfoot { font-weight: 700; }

.show-sdc {
    cursor: pointer;
    text-decoration: underline;
    margin-top: 20px;
}

.show-sdc:hover {
    color: #DA291C;
}