/* Sansteed: reusable Contact Form 7 file upload field. */
.wpcf7 .sj-cf7-upload-field {
    display: block;
    width: 100%;
    margin: 16px 0;
    clear: both;
}

.wpcf7 .sj-cf7-upload-label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 150px;
    margin: 0;
    padding: 24px 20px;
    overflow: hidden;
    text-align: center;
    background: #f7f9ff;
    border: 2px dashed #90aefb;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.wpcf7 .sj-cf7-upload-label:hover,
.wpcf7 .sj-cf7-upload-label:focus-within,
.wpcf7 .sj-cf7-upload-label.is-dragover {
    background: #eef3ff;
    border-color: var(--theme, #4376fb);
    box-shadow: 0 0 0 3px rgba(67, 118, 251, .12);
}

.wpcf7 .sj-cf7-upload-label.has-file {
    background: #eef8f1;
    border-color: #39a35b;
}

.wpcf7 .sj-cf7-upload-label.has-error {
    background: #fff5f5;
    border-color: #d63638;
}

.wpcf7 .sj-cf7-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    color: var(--theme, #4376fb);
}

.wpcf7 .sj-cf7-upload-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.wpcf7 .sj-cf7-upload-title {
    display: block;
    color: #202020;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.wpcf7 .sj-cf7-upload-title small {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}

.wpcf7 .sj-cf7-upload-hint {
    display: block;
    max-width: 560px;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
}

.wpcf7 .sj-cf7-upload-label .wpcf7-form-control-wrap {
    position: static !important;
    display: block;
    width: auto;
    height: auto;
}

.wpcf7 .sj-cf7-upload-label input[type="file"].sj-cf7-file-input {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    cursor: pointer;
}

.wpcf7 .sj-cf7-file-name {
    display: block;
    min-height: 20px;
    margin-top: 7px;
    overflow-wrap: anywhere;
    color: #5b6472;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.wpcf7 .sj-cf7-file-name.is-error {
    color: #d63638;
}

.wpcf7 .sj-cf7-upload-field .wpcf7-not-valid-tip {
    position: relative;
    z-index: 3;
    display: block;
    margin-top: 8px;
    pointer-events: none;
}

/* Complete form used inside the Service page upload panel. */
.service-upload-form {
    width: 100%;
    margin-top: 18px;
    text-align: left;
}

.service-upload-form .wpcf7,
.service-upload-form .wpcf7 form,
.service-upload-form .sj-service-form-fields {
    width: 100%;
}

.service-upload-form .sj-cf7-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.service-upload-form .sj-cf7-field {
    display: block;
    margin: 0 0 14px;
    color: #202020;
    text-align: left;
}

.service-upload-form .sj-cf7-field-label {
    display: block;
    margin-bottom: 6px;
    color: #202020;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.service-upload-form .sj-cf7-field-label em {
    color: #d63638;
    font-style: normal;
}

.service-upload-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.service-upload-form input[type="text"],
.service-upload-form input[type="email"],
.service-upload-form input[type="tel"],
.service-upload-form textarea {
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 11px 13px !important;
    color: #202020 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    background: #fff !important;
    border: 1px solid #cfd5df !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.service-upload-form input[type="text"],
.service-upload-form input[type="email"],
.service-upload-form input[type="tel"] {
    min-height: 44px;
}

.service-upload-form textarea {
    min-height: 115px;
    resize: vertical;
}

.service-upload-form input[type="text"]:focus,
.service-upload-form input[type="email"]:focus,
.service-upload-form input[type="tel"]:focus,
.service-upload-form textarea:focus {
    border-color: var(--theme, #4376fb) !important;
    box-shadow: 0 0 0 3px rgba(67, 118, 251, .12) !important;
}

.service-upload-form .sj-cf7-upload-field {
    margin-top: 2px;
}

.service-upload-form .sj-cf7-upload-label {
    min-height: 136px;
    background: rgba(255, 255, 255, .72);
}

.service-upload-form .sj-cf7-submit-wrap {
    display: block;
    width: 100%;
    margin-top: 14px;
}

.service-upload-form input[type="submit"].sj-cf7-submit-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 46px;
    margin: 0 !important;
    padding: 12px 24px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    background: var(--theme, #4376fb) !important;
    border: 1px solid var(--theme, #4376fb) !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    cursor: pointer;
}

.service-upload-form input[type="submit"].sj-cf7-submit-button:hover,
.service-upload-form input[type="submit"].sj-cf7-submit-button:focus {
    filter: brightness(.92);
}

.service-upload-form form.submitting input[type="submit"].sj-cf7-submit-button {
    opacity: .65;
    pointer-events: none;
}

.service-upload-form .wpcf7-spinner {
    margin: 0 0 0 10px;
    vertical-align: middle;
}

.service-upload-form .wpcf7-response-output {
    margin: 16px 0 0 !important;
    padding: 10px 12px !important;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.service-firstcontent .upload-left .left-border.service-form-card {
    box-sizing: border-box;
    padding: 30px;
}

@media (max-width: 1199px) {
    .service-upload-form .sj-cf7-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 767px) {
    .wpcf7 .sj-cf7-upload-label {
        min-height: 132px;
        padding: 20px 14px;
    }

    .service-firstcontent .upload-left .left-border.service-form-card {
        width: calc(100% - 24px);
        padding: 20px 14px;
    }

    .service-upload-form input[type="submit"].sj-cf7-submit-button {
        width: 100%;
    }
}

.service-firstcontent .upload-left .left-border .service-upload-form {
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
}
