/* TCA Loan Application - Frontend */
.tca-loan-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: inherit;
}

.tca-loan-wrap *,
.tca-loan-wrap *::before,
.tca-loan-wrap *::after {
    box-sizing: border-box;
}

.tca-loan-form {
    width: 100%;
}

.tca-loan-fields {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tca-field {
    width: 100%;
}

.tca-field > label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: #333;
}

.tca-field > label span {
    color: #d63638;
}

.tca-field input[type="text"],
.tca-field input[type="email"],
.tca-field input[type="tel"] {
    display: block;
    width: 100%;
    height: 48px;
    padding: 10px 12px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #8a8a8a;
    border-radius: 0;
    background: #fff;
    color: #222;
    font: inherit;
    outline: none;
    box-shadow: none;
}

.tca-field input[type="text"]:focus,
.tca-field input[type="email"]:focus,
.tca-field input[type="tel"]:focus {
    border-bottom-color: #006b8f;
}

.tca-upload-field small {
    display: block;
    margin-top: 6px;
    color: #777;
    font-size: 11px;
}

.tca-dropzone {
    position: relative;
    min-height: 112px;
    width: 100%;
    border: 2px dashed #999;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 15px;
    transition: border-color .15s ease, background-color .15s ease;
}

.tca-dropzone.tca-dragover {
    border-color: #006b8f;
    background: #f4fbfd;
}

.tca-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tca-upload-icon {
    font-size: 23px;
    line-height: 1;
    margin-bottom: 8px;
    color: #666;
}

.tca-upload-text {
    font-size: 12px;
    color: #777;
}

.tca-browse {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.tca-file-name {
    max-width: 95%;
    margin-top: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: #444;
}

.tca-form-message {
    display: none;
    margin: 20px 0;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.tca-form-message.tca-error {
    display: block;
    background: #fff1f1;
    border: 1px solid #e2a2a2;
    color: #a12626;
}

.tca-form-message.tca-success {
    display: block;
    background: #eefaf2;
    border: 1px solid #9bc9aa;
    color: #176b31;
}

.tca-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    padding: 12px 22px;
    border: 0;
    border-radius: 3px;
    background: #007d68;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.tca-submit:hover {
    background: #006c5b;
}

.tca-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.tca-submit-loading {
    display: none;
}

.tca-submit.is-loading .tca-submit-label {
    display: none;
}

.tca-submit.is-loading .tca-submit-loading {
    display: inline;
}

.tca-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

@media (max-width: 600px) {
    .tca-loan-fields {
        gap: 18px;
    }

    .tca-field > label {
        font-size: 13px;
    }

    .tca-dropzone {
        min-height: 105px;
        padding: 16px 10px;
    }

    .tca-upload-text {
        font-size: 11px;
    }
}
