/*
 * Translation quotation form — look and feel.
 *
 * The form rules are lifted from the reference's stylesheet,
 * index.enago.com/translation/css/translation-academy.css, so the layout, spacing, control sizes
 * and colours match it. Only the form is here.
 *
 * Deliberately NOT carried over:
 *   - .translation-header / .translation-navbar / .translation-footer — the reference page's own
 *     chrome. This site uses includes/inc_header_new.htm + includes/inc_footer.htm.
 *   - the landing-page sections (.homepage-banner2, .usp-wrap, .casestudies-info, #publishedpaper,
 *     #testimo-carousel, .other-translation, .translation-level, .banner-icon, .ps-support) — none
 *     of them appear on the form page.
 *   - the reference's @font-face blocks for OpenSans-Regular/Semibold. This site already loads Open
 *     Sans globally via css/open-sans-global.css, so the semibold rules below use font-weight
 *     instead of naming a second copy of the family.
 *
 * Loaded AFTER css/uploadfile.min.css, so the uploader rules at the bottom restyle the widget the
 * way the reference does.
 */

/* ---------------------------------------------------------------- base typography
 * The reference page loads only bootstrap.min.css + its own stylesheet, and puts the form's base
 * type on `body`: 16px / 1.3 / #000000 (translation-academy.css). This site's shared header and
 * footer need css/enago-kr.css and css/open-sans-global.css, neither of which sets those three —
 * so without the rules below the form would fall back to Bootstrap's 14px / 1.428 / #333 and pick
 * up enago-kr's own <p> and <h1> treatment, none of which the reference has.
 *
 * The reference's values are therefore pinned to the two page containers rather than to `body`:
 * the form matches the live page exactly, and the shared header/footer and every other page keep
 * the site's own typography untouched.
 */
.qf-container,
.translation-thankyou {
    font-size: 16px;
    line-height: 1.3;
    color: #000000;
}

/* enago-kr.css: `p { font-size:15px; line-height:26px; margin:0 0 20px; word-break:keep-all }`, and
   open-sans-global.css: `p,li { line-height:1.6 }`. On the reference every <p> on this page simply
   inherits the body values above, with Bootstrap's 10px bottom margin — including the three service
   radio captions and the captcha question, where the extra 20px margin is clearly visible. */
.qf-container p,
.translation-thankyou p {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 10px;
    word-break: normal;
}

/* ---------------------------------------------------------------- Form Quotation */
.qf-container {
    background-color: #f4f4f4;
}

.qf-container .form-wrapper {
    background-color: #ffffff;
    width: 100%;
    max-width: 790px;
    margin: 60px auto;
    padding: 10px 10px 25px;
}

.qf-container .form-wrapper .header-info {
    padding: 0 15px 25px;
    text-align: center;
}

/* 36px is Bootstrap's h1, which the reference stylesheet does not override. enago-kr.css forces
   `h1 { font-size: 30px !important }` for the rest of the site, so matching the reference here
   needs !important as well — specificity alone cannot win against it. */
.qf-container .form-wrapper .header-info .us-heading {
    font-weight: 600;
    font-size: 36px !important;
}

.qf-container .form-wrapper .emailwraper {
    background: #fff9f8;
    padding: 10px 15px;
    width: 100%;
}

.qf-container .form-wrapper .emailwraper #email {
    width: 100%;
    max-width: 450px;
}

.qf-container .form-wrapper .has-error .help-block {
    color: #e96b69;
}

.qf-container .form-wrapper .lablehead {
    font-weight: 600;
}

.qf-container .form-wrapper .lablehead .required {
    color: red;
}

.qf-container .form-wrapper .form-group .form-control {
    height: 45px;
    padding: 12px 12px;
    font-size: 16px;
}

.qf-container .form-wrapper .form-group .form-control.comment-input {
    height: 90px;
}

/* enago-kr.css has `.marb-10 { margin-bottom: 10px !important }`. The reference stylesheet has no
   .marb-10 rule at all, so the textarea carries no margin of its own there and the gap below it is
   just .form-group's. Cancel the inherited one to match. */
.qf-container .form-wrapper .comment-input.marb-10 {
    margin-bottom: 0 !important;
}

.qf-container .form-wrapper .form-group .agree {
    font-weight: 300;
}

.qf-container .form-wrapper .form-group .us-btn {
    pointer-events: all;
    cursor: pointer;
    background: #029dcd;
    border: 1px solid #ccc;
    padding: 14px 10px;
    width: 200px;
    display: inline-block;
    text-align: center;
    transition: all 0.35s ease-in-out;
    color: #ffffff;
    border-radius: 5px;
    font-weight: 600;
}

.qf-container .form-wrapper .form-group .us-btn:hover {
    background: #0281a8;
}

/* Keyboard users need to see where they are; the reference relies on the browser default, which
   several of these controls suppress. */
.qf-container .form-wrapper .form-group .us-btn:focus,
.qf-container .form-wrapper .form-control:focus {
    outline: 2px solid #0281a8;
    outline-offset: 1px;
}

/* Submitting state — the button is disabled for the duration of the request. */
.qf-container .form-wrapper .form-group .us-btn[disabled],
.qf-container .form-wrapper .form-group .us-btn[disabled]:hover {
    background: #8fc9dd;
    cursor: not-allowed;
    pointer-events: none;
}

.qf-container .form-wrapper .heading {
    font-size: 22px;
    position: relative;
    border-bottom: 1px solid #d52b1e;
    padding-bottom: 6px;
    margin: 0 0 20px;
    font-weight: 600;
}

.qf-container .form-wrapper .heading::before {
    content: "";
    display: inline-block;
    border: #d52b1e 5px solid;
    border-radius: 50%;
    margin-right: 8px;
    padding: 4px;
    vertical-align: top;
    position: relative;
    top: 4px;
}

.qf-container .form-wrapper .uploadfile_wrap {
    margin-bottom: 20px;
    margin-top: 10px;
}

.qf-container .form-wrapper .other_details {
    margin-top: 5px;
}

.qf-container .form-wrapper .service-details .radio-inline .text {
    text-align: center;
}

.qf-container .form-wrapper .service-details .radio-inline .text img {
    margin-bottom: 8px;
}

.qf-container .form-wrapper .service-details .radio-inline .text h2 {
    font-size: 16px;
    margin: 0 0 0px;
    font-weight: 600;
}

.qf-container .form-wrapper .service-details .radio-inline .text span {
    font-size: 14px;
    line-height: 18px;
    display: block;
}

/* ---------------------------------------------------------------- messages
   The reference has no page-level error area at all: a failed submission produced no visible
   feedback. These two carry the handler's messages. */
.tf-alert {
    margin: 0 15px 20px;
    padding: 12px 15px;
    border: 1px solid #e0b4b4;
    border-radius: 4px;
    background: #fff6f6;
    color: #9f3a38;
    font-size: 15px;
    line-height: 1.4;
}

.tf-error {
    color: #e96b69;
}

.tf-upload-hint {
    font-size: 13px;
    color: #777;
    margin: 6px 0 0;
}

/* ---------------------------------------------------------------- upload widget
   Reference styling for jquery.uploadfile, applied over this site's css/uploadfile.min.css. */
.ajax-file-upload-statusbar {
    border: 1px solid #0ba1b5;
    margin: 5px;
    border-radius: 4px;
    padding: 5px;
}

.ajax-file-upload-filename {
    width: 100%;
    height: auto;
    margin: 0 5px 5px 10px;
    color: #807579;
}

.ajax-file-upload-progress {
    margin: 0 10px 5px 10px;
    position: relative;
    width: 250px;
    border: 1px solid #ddd;
    padding: 1px;
    border-radius: 3px;
    display: inline-block;
}

.ajax-file-upload-bar {
    background-color: #0ba1b5;
    width: 0;
    height: 20px;
    border-radius: 3px;
    color: #fff;
}

.ajax-file-upload-percent {
    position: absolute;
    display: inline-block;
    top: 3px;
    left: 48%;
}

.ajax-file-upload-red {
    box-shadow: inset 0 39px 0 -24px #e67a73;
    background-color: #e4685d;
    border-radius: 4px;
    display: inline-block;
    color: #fff;
    font-family: arial;
    font-size: 13px;
    font-weight: normal;
    padding: 4px 15px;
    text-decoration: none;
    text-shadow: 0 1px 0 #b23e35;
    cursor: pointer;
    vertical-align: top;
    margin-right: 5px;
}

.ajax-file-upload-green {
    background-color: #77b55a;
    border-radius: 4px;
    margin: 0;
    display: inline-block;
    color: #fff;
    font-family: arial;
    font-size: 13px;
    font-weight: normal;
    padding: 4px 15px;
    text-decoration: none;
    cursor: pointer;
    text-shadow: 0 1px 0 #5b8a3c;
    vertical-align: top;
    margin-right: 5px;
}

.ajax-file-upload {
    background-color: #5cb85c;
    border-color: #4cae4c;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857;
    padding: 6px 12px 6px 25px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    position: relative;
}

.ajax-file-upload:before {
    content: "+";
    font-family: arial;
    font-size: 24px;
    font-weight: bold;
    left: 5px;
    position: absolute;
    top: -1px;
}

.ajax-file-upload:hover {
    background: #47a447;
}

.ajax-upload-dragdrop {
    border: 1px solid #ccc;
    color: #313131;
    background: #f5f5f5;
    padding: 12px;
    margin-bottom: 10px;
    text-align: left;
    width: 100%;
    vertical-align: middle;
    max-width: 550px;
}

.ajax-upload-dragdrop.state-hover {
    border: 2px solid #a5a5c7;
}

.ajax-file-upload-error {
    color: red;
}

.ajax-upload-dragdrop b {
    font-weight: normal;
    margin-left: 10px;
}

/* ---------------------------------------------------------------- thank you */
.translation-thankyou {
    padding: 150px 0 200px;
    background-color: #f1f2f2;
}

.translation-thankyou .heading {
    text-align: center;
}

.translation-thankyou .heading .us-heading {
    font-size: 36px !important;   /* beats enago-kr.css's `h1 { font-size: 30px !important }` */
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 600;
}

/* The "Back to Home" button is this site's addition — the reference's thank-you page is gated on
   HTTP_REFERER and could not be inspected. Neither the reference stylesheet nor this site's CSS has
   a bare .us-btn rule, so without this the link rendered as unstyled body text. Same treatment as
   the form's submit button, scoped to this section so no other page picks up a global .us-btn. */
.translation-thankyou .us-btn {
    display: inline-block;
    cursor: pointer;
    background: #029dcd;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 14px 24px;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.35s ease-in-out;
}

.translation-thankyou .us-btn:hover,
.translation-thankyou .us-btn:focus {
    background: #0281a8;
    color: #ffffff;
    text-decoration: none;
}

/* ---------------------------------------------------------------- layout helpers */
.d-flex {
    display: flex;
}

@media screen and (max-width: 767px) {
    .qf-container .form-wrapper {
        margin: 30px auto;
    }

    .d-flex {
        display: block !important;
    }

    .qf-container .form-wrapper .service-details .radio-inline {
        display: block;
        margin-bottom: 10px;
    }

    .ajax-upload-dragdrop {
        max-width: 100%;
    }

    .translation-thankyou {
        padding: 80px 0 100px;
    }

    .translation-thankyou .heading .us-heading {
        font-size: 28px !important;
    }
}
