.ctech-wrapper textarea.rfq-textarea {
    margin-bottom: 10px;
}

.subform-table-layout .table th, .subform-table-layout .table td {
    border: none;
}

.subform-table-layout .control-group {
    margin: 0;
}

.sample-form .subform-table-layout .ctech-btn-sm {
    padding: 0 4px;
    cursor: pointer;
}

.sample-form input[type="text"] {
    margin-bottom: 9px;
}

.sample-form .field-jform_agree_tnc {
    margin-top: calc(0.8rem + 1px);
}

[dir] .ctech-wrapper #sample-form .ctech-form-group input[type="text"][readonly] {
    background: #eee;
}

.sample-form .radio-group, .sample-form .checkboxes {
    margin-top: 7px;
}

.sample-form .checkboxes label {
    margin-right: 10px;
    line-height: 18px;
}

.sample-form .form-check .form-check-input {
    width: 0.9em;
    height: 0.9em;
    vertical-align: baseline;
    float: none;
}

.radio-group.radio input[type="radio"] {
    float: none;
    margin-left: 0px;
    vertical-align: -2px;
}

.rfs-page-title {
    margin-bottom: 50px !important;
}

[dir=ltr] .sample-form fieldset.radio > label {
    margin-left: 0 !important;
}

.sample-form .form-check-inline input[type="radio"] {
    display: inline-block !important;
}

.sample-form .input-append {
    width: 86%;
    display: inline-block;
    white-space: nowrap;
}

.sample-form .input-append input {
    display: inline !important;
}

.sample-form .input-append .btn:last-child {
    font-size: small;
    padding: 6px 12px;
}

.sample-modal h2.page-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    width: 65%;
    margin-bottom: 0;
}

.sample-modal .rfs-page-title .close-button {
    width: 35%;
}

.sample-modal .rfs-header {
    display: none;
}

.rfs-completed-title {
    margin-top: 20px;
}

.sample-modal .rfs-close {
    display: none;
}

.sample-modal .ctech-btn.rfs-close {
    border-radius: 0.2rem;
    padding: 4px 8px;
}

.sample-modal .ctech-btn.rfs-submit {
    font-size: 18px;
    font-weight: 600;
    padding: 8px 16px;
}

body.sample-modal-body {
    padding: 20px !important;
}

body.sample-modal-body .grecaptcha-badge {
    bottom: 70px !important;
}

.ctech-wrapper .sample-form .ctech-form-group input[type='text'],
.ctech-wrapper .sample-form .ctech-form-group input[type='number'] {
    height: 18px;
    margin-bottom: 0;
}

.tnc-field input[type="checkbox"] + a {
    vertical-align: text-bottom;
}

/* Fix for calendar field */
.calendar thead tr td.nav {
    display: table-cell;
}

div.calendar table {
    width: 100%;
}

@media (max-width: 767px) {
    .sample-form .ctech-form-group .ctech-col-form-label,
    [dir=ltr] .sample-form .ctech-wrapper .ctech-form-group .ctech-col-form-label {
        float: initial;
    }

    .sample-form .ctech-wrapper .ctech-form-group .ctech-col-form-label + .ctech-col-form-input,
    .sample-form .ctech-wrapper .ctech-form-group .ctech-col-form-label + .ctech-col-form-input {
        float: initial;
    }

    .sample-form .ctech-wrapper .ctech-form-group .ctech-col-form-label + .ctech-col-form-input,
    .sample-form .ctech-wrapper .ctech-form-group .ctech-col-form-label + .ctech-col-form-input {
        width: 100%;
    }

    .sample-form .subform-repeatable-wrapper .table {
        font-size: 13px;
    }

    .rfs-btn-grp {
        position: fixed;
        bottom: 0;
        right: 0;
        z-index: 3;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .rfs-btn-grp button {
        width: 49%;
        border-radius: 0 !important;
    }

    .rfs-btn-grp button:only-child {
        width: 100%;
    }

    #system-message-container {
        bottom: 30px !important;
    }

    .ctech-wrapper #request-tnc-lightbox .ctech-modal-dialog {
        margin-top: 35px;
    }

    .ctech-wrapper .ctech-btn.ctech-btn-sm.rfs-close {
        font-size: 20px !important;
        padding: 1px 10px !important;
    }

    .ctech-wrapper.sample-modal .sample-form {
        margin-bottom: 45px;
    }

    .sample-modal .rfs-page-title.page-title {
        margin-top: 15px;
    }

    .sample-modal .rfs-modal-header {
        display: none;
    }

    .sample-modal .rfs-header {
        display: block;
    }

    .sample-modal .rfs-page-title.rfs-modal-header {
        margin: 0 !important;
    }

    .sample-modal .rfs-close {
        display: inline-block;
    }

    .field-jform_quote_items {
        position: relative;
    }
}
