@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap');

/* Core theme tokens for the quote modal. */
:root {
    --xnet-ink: #45556c;
    --xnet-ink-soft: #5f6e82;
    --xnet-snow: #f7f9fc;
    --xnet-shell: #eef2f7;
    --xnet-accent: #cc483e;
    --xnet-accent-strong: #b2382f;
    --xnet-shadow: 0 28px 70px rgba(22, 32, 48, 0.2);
    --xnet-radius: 20px;
}

.xnet-quote-launch {
    display: flex;
    justify-content: center;
}

.xnet-quote-dummy {
    width: 100%;
}

.xnet-quote-dummy-form {
    margin: 0;
    padding: 26px 24px;
    /*border-radius: 16px;*/
    /*border: 1px solid rgba(69, 85, 108, 0.2);*/
    background: #fff;
    display: grid;
    gap: 30px;
    font-family: 'Noto Sans', sans-serif;
}

.xnet-quote-dummy-form h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    color: #2a2f36;
    text-align: left;
    font-weight: 700;
}

.xnet-quote-dummy-fields {
    display: grid;
    gap: 30px;
}

.xnet-quote-dummy-fields input {
    width: 100%;
    border: 1px solid #e4e8ee;
    border-radius: 12px;
    background: #f6f8fb;
    padding: 13px 14px;
    color: #45556c;
    font-family: 'Noto Sans', sans-serif;
}

.xnet-quote-dummy-fields input::placeholder {
    color: #59697f;
}

.xnet-quote-dummy-submit {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
    background: var(--xnet-accent);
    color: #fff;
    font-family: 'Noto Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.xnet-quote-dummy-submit:hover,
.xnet-quote-dummy-submit:focus {
    background: var(--xnet-accent-strong);
}

.xnet-quote-open {
    border: none;
    border-radius: 999px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--xnet-accent), var(--xnet-accent-strong));
    color: #fff;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 18px 32px rgba(204, 72, 62, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.xnet-quote-open:hover,
.xnet-quote-open:focus {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(191, 107, 42, 0.45);
}

.xnet-quote-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2147483647;
}

.xnet-quote-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.xnet-quote-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(69, 85, 108, 0.35), rgba(27, 36, 52, 0.9));
    backdrop-filter: blur(4px);
}

/* Modal container and layout. */
.xnet-quote-panel {
    position: relative;
    width: min(720px, 92vw);
    min-width: min(540px, 92vw);
    min-height: min(560px, 80vh);
    overflow: hidden;
    border-radius: var(--xnet-radius);
    background: linear-gradient(160deg, #ffffff, var(--xnet-snow));
    box-shadow: var(--xnet-shadow);
    padding: 38px 44px 34px;
    animation: xnet-rise 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes xnet-rise {
    from {
        transform: translateY(18px) scale(0.98);
        opacity: 0.7;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.xnet-quote-close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--xnet-ink-soft);
    cursor: pointer;
}

.xnet-quote-header {
    padding-right: 28px;
    margin-bottom: 0px;
    text-align: center;
}

.xnet-quote-eyebrow {
    font-family: 'Noto Sans', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--xnet-ink-soft);
    margin: 0 0 8px;
}

.xnet-quote-header h2 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--xnet-ink);
}

.xnet-quote-subtitle {
    margin: 0;
    font-family: 'Noto Sans', sans-serif;
    color: var(--xnet-ink-soft);
}

.xnet-quote-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
}

.xnet-quote-step {
    width: 100%;
}

.xnet-quote-step[hidden] {
    display: none !important;
}

.xnet-quote-thankyou {
    text-align: center;
}

.xnet-quote-thankyou p {
    margin: 0 0 12px;
    font-family: 'Noto Sans', sans-serif;
    color: var(--xnet-ink);
}

.xnet-quote-note {
    margin: 10px 0 0;
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    color: var(--xnet-ink-soft);
    text-align: center;
}

.xnet-quote-note[data-area-display] {
    display: block;
    visibility: visible;
}

.xnet-quote-step h3 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--xnet-ink);
    text-align: center;
}

.xnet-quote-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 14px;
    width: 100%;
}

.xnet-quote-options-checkboxes {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
}

.xnet-quote-options .xnet-quote-option {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px;
    flex-direction: row !important;
    justify-content: flex-start !important;
    padding: 10px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(69, 85, 108, 0.15);
    font-family: 'Noto Sans', sans-serif;
    color: var(--xnet-ink);
    cursor: pointer;
    transition: border 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.xnet-quote-options .xnet-quote-option input {
    accent-color: var(--xnet-accent-strong);
    margin: 0;
    order: 0 !important;
    flex: 0 0 auto;
    display: inline-block !important;
}

.xnet-quote-options .xnet-quote-option span {
    order: 1 !important;
    display: inline-block !important;
}

.xnet-quote-option:hover {
    border-color: rgba(32, 52, 43, 0.35);
    transform: translateY(-1px);
}

.xnet-quote-fields {
    display: grid;
    gap: 14px;
    width: 100%;
}

.xnet-quote-fields-inline {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: end;
}

.xnet-quote-fields-two-col {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
}

.xnet-quote-fields label {
    display: grid;
    gap: 6px;
    font-family: 'Noto Sans', sans-serif;
    color: var(--xnet-ink);
}

.xnet-quote-fields input,
.xnet-quote-fields textarea,
.xnet-quote-fields select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(69, 85, 108, 0.22);
    background: #fff;
    font-family: 'Noto Sans', sans-serif;
}

.xnet-quote-fields input::placeholder,
.xnet-quote-fields textarea::placeholder {
    color: rgba(69, 85, 108, 0.45);
}

.xnet-quote-fields textarea {
    resize: vertical;
}

.xnet-field-hidden {
    display: none !important;
}

.xnet-quote-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--xnet-shell);
    border: 1px solid rgba(69, 85, 108, 0.12);
    font-family: 'Noto Sans', sans-serif;
    color: var(--xnet-ink);
}

.xnet-toggle-group {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
}

.xnet-toggle-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.xnet-toggle-group input {
    accent-color: var(--xnet-accent-strong);
}

.xnet-quote-options-checkboxes .xnet-quote-option {
    align-items: flex-start;
}

.xnet-quote-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.xnet-quote-error {
    width: 100%;
    margin-bottom: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(204, 72, 62, 0.12);
    color: var(--xnet-accent-strong);
    font-family: 'Noto Sans', sans-serif;
    font-size: 13px;
}

.xnet-quote-field-error {
    border-color: var(--xnet-accent) !important;
    box-shadow: 0 0 0 2px rgba(204, 72, 62, 0.15);
}

.xnet-quote-actions button {
    border-radius: 999px;
    border: none;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
}

.xnet-quote-back {
    background: transparent;
    color: var(--xnet-ink-soft);
}

.xnet-quote-next {
    background: var(--xnet-accent);
    color: #fff;
    box-shadow: 0 16px 30px rgba(204, 72, 62, 0.25);
}

.xnet-quote-fields-two-col {
    margin-bottom: 20px;
}

.CodeMirror-scroll {
    min-height: 600px !important;
}

@media (max-width: 600px) {
    .xnet-quote-dummy-form {
        padding: 18px 14px;
    }

    .xnet-quote-dummy-form h3 {
        font-size: 22px;
    }

    .xnet-quote-dummy-submit {
        font-size: 20px;
        padding: 12px 16px;
    }

    .xnet-quote-panel {
        padding: 20px 16px 18px;
        min-width: auto;
        min-height: auto;
        max-height: 90vh;
        overflow: hidden;
    }

    .xnet-quote-header {
        margin-bottom: 18px;
    }

    .xnet-quote-eyebrow {
        font-size: 10px;
    }

    .xnet-quote-header h2 {
        font-size: 22px;
    }

    .xnet-quote-subtitle {
        font-size: 14px;
    }

    .xnet-quote-options {
        grid-template-columns: 1fr;
    }

    .xnet-quote-options-checkboxes {
        grid-template-columns: 1fr;
    }

    .xnet-quote-fields-two-col {
        grid-template-columns: 1fr;
    }

    .xnet-quote-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .xnet-quote-actions button {
        width: 100%;
    }

    .xnet-quote-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .xnet-quote-form {
        gap: 16px;
    }

    .xnet-quote-step h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .xnet-quote-note {
        font-size: 13px;
    }

    .xnet-quote-option {
        padding: 12px 12px;
        border-radius: 14px;
        font-size: 14px;
    }

    .xnet-quote-fields {
        gap: 10px;
    }

    .xnet-quote-fields input,
    .xnet-quote-fields textarea,
    .xnet-quote-fields select {
        padding: 10px 12px;
        font-size: 14px;
    }

    .xnet-quote-fields label span {
        font-size: 13px;
    }

    .xnet-quote-actions button {
        padding: 10px 18px;
        font-size: 14px;
    }

    .xnet-quote-panel {
        display: flex;
    }

    .xnet-quote-form {
        overflow: auto;
        max-height: calc(90vh - 80px);
        padding-right: 4px;
    }
}
