/**
 * Toshiba FS Request Form - front-end styles.
 * Self-contained, minimal, theme-friendly.
 */
 
.custom-popup-container.application-popup-container .custom-popup-wraper{
	    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}
.custom-popup-container.application-popup-container .close{  
    right: -10px !important;
    top: -8px  !important; 
}
.custom-popup-container.application-popup-container .close svg {
    width: 20px !important;
    height: 20px !important;
}
.toshiba-fs-wrapper {
    color: #000000;
    padding: 35px;
    background: #EFEFEFE8;
}
.toshiba-fs-form-only{
	    max-height: 500px;
    overflow-x: hidden;
	    padding-right: 10px;
}
.toshiba-fs-form {
   /* background: #EFEFEFE8;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 28px;*/
}

.toshiba-fs-title {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin: 0 0 22px;
    color: #000000;
    border-bottom: 5px solid #E61D1E52;
    padding-bottom: 10px;
    padding-right: 75px;
}

.toshiba-fs-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.toshiba-fs-row .toshiba-fs-field {
    flex: 1 1 240px;
}

.toshiba-fs-row-meta {
    background: #f6f8fb;
    padding: 14px;
    border-radius: 4px;
    margin-bottom: 18px;
}

.toshiba-fs-field {
    margin-bottom: 16px;
    display: block;
}
.toshiba-fs-field .iti__selected-country{
	background: transparent !important;
    color: #000;
    font-weight: 400;
    font-size: 13px;
}


.toshiba-fs-field .iti .iti__country{
    padding: 5px var(--iti-spacer-horizontal) !important;
     font-size: 14px !important;
}
.toshiba-fs-field .iti__selected-country:hover .iti__selected-dial-code{
	color:#000 !important;
}
.toshiba-fs-field .iti{
    width: 100% !important;
}
.toshiba-fs-field-narrow {
    flex: 0 0 120px;
}

.toshiba-fs-field label {
    display: block;
    font-weight: 600;
    margin-bottom:4px;
    font-size: 15px;
}

.toshiba-fs-field .required {
    color: #c0392b;
}

.toshiba-fs-field input[type="text"],
.toshiba-fs-field input[type="email"],
.toshiba-fs-field select,
.toshiba-fs-field textarea {
	width: 100%;
    padding:  10px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid #0064D2 !important;
    border-radius: 0px !important;
    box-shadow: unset !important;
    line-height: normal;
}

.toshiba-fs-field input:focus,
.toshiba-fs-field select:focus,
.toshiba-fs-field textarea:focus {
    outline: none;
    border-color: #1b365d;
    box-shadow: 0 0 0 2px rgba(27, 54, 93, 0.15);
}

.toshiba-fs-field input[readonly] {
    background: #f1f1f1;
    color: #555;
}

.toshiba-fs-field textarea {
    resize: vertical;
    min-height: 70px;
}

.toshiba-fs-field small,
.toshiba-fs-note {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    line-height: 1.45;
}

.toshiba-fs-error {
    color: #E61D1E;
    font-size: 13px;
    margin-top: 4px;
}

.toshiba-fs-error.is-visible {
    display: block;
}

.toshiba-fs-field.has-error input,
.toshiba-fs-field.has-error select,
.toshiba-fs-field.has-error textarea {
    border-color: #c0392b !important;
 }

.toshiba-fs-nda {
 
}

.toshiba-fs-nda h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #000000;
	 font-weight: 600;
}

.toshiba-fs-nda-text {
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 14px;
}

.toshiba-fs-nda-text p {
    margin: 0 0 10px;
}

.toshiba-fs-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    position: relative; /* contain the visually-hidden checkbox below */
}

/*
 * Hide the native checkbox without taking it out of its label, and without
 * letting it trigger an ancestor scroll-into-view when it receives focus.
 *
 * Earlier we used `position: absolute; opacity: 0` with no top/left and no
 * positioned ancestor, which let the input escape to the popup body. The
 * browser then auto-scrolled the popup to bring the off-flow input into view
 * each time the agreement was clicked, which presented as the popup
 * suddenly growing taller with blank space at the bottom.
 *
 * Anchoring the input to (0,0) of its own label and shrinking it to 1x1px
 * keeps it focusable / form-submittable / keyboard-accessible without ever
 * driving the scroll position of any ancestor.
 */
.toshiba-fs-checkbox-label input[type="checkbox"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    pointer-events: none;
    white-space: nowrap;
}

/* Custom checkbox */
.toshiba-fs-nda-clause-text {
    position: relative;
    padding-left: 30px;
    line-height: 1.4;
	    display: inline-block;
}
.toshiba-fs-nda-clause-text a{
	color:#000 !important;
	text-decoration:underline !important;
}
.toshiba-fs-nda-clause-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border: 1.5px solid #767070;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
}

/* Checkmark */
.toshiba-fs-nda-clause-text::after {
	content: "";
    position: absolute;
    left: 6px;
    top: 7px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

/* Checked state */
.toshiba-fs-checkbox-label input[type="checkbox"]:checked + .toshiba-fs-nda-clause-text::before {
    background: #0064D2;
    border-color: #0064D2;
}

.toshiba-fs-checkbox-label input[type="checkbox"]:checked + .toshiba-fs-nda-clause-text::after {
    transform: rotate(45deg) scale(1);
}

/* Focus state for accessibility */
.toshiba-fs-checkbox-label input[type="checkbox"]:focus + .toshiba-fs-nda-clause-text::before {
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.25);
}

.toshiba-fs-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

.toshiba-fs-actions {
    margin-top: 22px;
    text-align: right;
}

.toshiba-fs-submit {
   background-color: #E61D1E !important;
    color: #fff;
    border: none;
    padding: 11px 25px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-weight: 500;
}

.toshiba-fs-submit:hover:not(:disabled) {
    background: #0064D2 !important;
}

.toshiba-fs-submit:disabled {
    background: #7c8aa1;
    cursor: not-allowed;
}

.toshiba-fs-form-message {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.toshiba-fs-form-message.is-error,
.toshiba-fs-form-message.is-info {
    display: block;
}

.toshiba-fs-form-message.is-error {
     background: #e61d1e;
    color: #ffffff;
    border-radius: 0;
}

.toshiba-fs-form-message.is-info {
	background: #0064d2;
    color: #ffffff;
    border-radius: 0;
}

.toshiba-fs-thank-you {
     background: #efefef;
    border: 4px solid #0064d275;
    color: #000000;
    padding: 35px;
    text-align: center;
}

.toshiba-fs-thank-you h2 {
    margin: 0 0 12px;
    color: #0064d2;
}

.toshiba-fs-thank-you-number {
   color: #000000;
    display: block;
}

.toshiba-fs-nda-intro {
    font-size: 13px;
    color: #444;
    margin: 0 0 12px;
}

.toshiba-fs-nda-list {
    list-style: decimal-leading-zero;
    font-weight: 400 !important;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 16px 25px 15px 35px;
    font-size: 15px !important;
    background: #fff;
    border-radius: 10px;
    text-align: justify;
/*	list-style: none;
    max-height: 300px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 30px 20px 30px 35px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dbdbdb;*/
}

.toshiba-fs-nda-list li {
    margin-bottom: 10px;
    line-height: 1.4;
    color: #000000;
    font-size: 14px;
	position:relative;
}
.toshiba-fs-nda-list .toshiba-fs-nda-clause-item:before{
    content: "";
    position: absolute;
    left: -20px;
    top: 5px;
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 15px;
}
.toshiba-fs-nda-agreement {
    border-top: 1px solid #0000001c;
    padding-top: 14px;
    margin-top: 8px;
}

.toshiba-fs-nda-agreement .toshiba-fs-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    line-height: 1.5;
}

.toshiba-fs-nda-agreement-text,.toshiba-fs-nda-clause-text {
        flex-grow: 1;
		font-weight:400 !important;
}

.toshiba-fs-nda-agreement.has-error,
.toshiba-fs-field.has-error .toshiba-fs-nda-agreement {
    color: #c0392b;
}

.toshiba-fs-recaptcha-field {
    margin-top: 18px;
}

/* -------- Popup modal (display="popup") ---------- */
.toshiba-fs-popup-trigger{
padding: 0;
    background: transparent !important;
    color: #000 !important;
    border: 0 !important;
    line-height: revert;
    display: inline-flex;
    align-items: center;
    gap: 10px !important;
    font-size: 18px !important;
    gap: 10px;
    margin-top: 20px;
}
.toshiba-fs-popup-trigger:hover{
	  color: #0064D2!important;
}
hr.fs-space{
	    margin-top: 15px;
}
.toshiba-fs-popup-trigger svg{
	    width: 25px;
		fill:#0A65D2 !important;
}
.toshiba-fs-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.toshiba-fs-modal.is-open {
    display: block;
}

.toshiba-fs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.toshiba-fs-modal-dialog {
    position: absolute;
    margin: 40px auto;
    max-width: 800px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: transparent;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    outline: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.toshiba-fs-modal-body {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.toshiba-fs-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    color: #000;
    border: none !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.toshiba-fs-modal-close:hover,
.toshiba-fs-modal-close:focus {
    background: #E61D1E;
    color: #fff;
    border-color: #E61D1E;
}

body.toshiba-fs-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .toshiba-fs-row {
        flex-direction: column;
        gap: 0;
    }

    .toshiba-fs-field-narrow {
        flex: 1 1 auto;
    }

    .toshiba-fs-form {
        padding: 18px;
    }

    .toshiba-fs-modal-dialog {
        margin: 16px auto;
        max-height: calc(100vh - 32px);
        width: calc(100% - 24px);
    }
}
