/* =========================================================
   CHEAPER SOLUTIONS — CONSULTATION MODAL
   ========================================================= */

.cs-modal[hidden] {
    display: none !important;
}

.cs-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        rgba(0, 0, 0, 0.88);

    backdrop-filter: blur(8px);
}

.cs-modal-panel {
    position: relative;

    width: min(720px, 100%);
    max-height: calc(100vh - 48px);

    overflow-y: auto;

    padding: 42px;

    background:
        linear-gradient(
            145deg,
            #171019 0%,
            #0c0a0e 55%,
            #090909 100%
        );

    border: 1px solid rgba(255, 0, 170, 0.42);
    border-radius: 4px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.75),
        0 0 60px rgba(255, 0, 170, 0.12);
}

.cs-modal-panel::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: #ff00aa;
}


/* Windows-style close control */

.cs-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2px;

    background: #111;
    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background 140ms ease,
        border-color 140ms ease,
        color 140ms ease;
}

.cs-modal-close:hover,
.cs-modal-close:focus-visible {
    background: #ff00aa;
    border-color: #ff00aa;
    color: #000;
    outline: none;
}


/* Header */

.cs-modal-header {
    padding: 8px 28px 28px;
    text-align: center;
}

.cs-modal-header .cs-result-label {
    display: block;
    margin-bottom: 10px;
}

.cs-modal-header h2 {
    margin: 0 0 12px;

    color: #fff;

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.cs-modal-header p {
    max-width: 570px;
    margin: 0 auto;

    color: rgba(255, 255, 255, 0.72);

    font-size: 16px;
    line-height: 1.65;
}


/* Form */

.cs-consultation-form {
    width: 100%;
}

.cs-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cs-form-field {
    min-width: 0;
}

.cs-form-field-full {
    grid-column: 1 / -1;
}

.cs-form-field label,
.cs-form-field legend {
    display: block;

    margin-bottom: 8px;

    color: #fff;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.cs-form-field input[type="text"],
.cs-form-field input[type="tel"],
.cs-form-field input[type="email"],
.cs-form-field input[type="date"],
.cs-form-field input[type="time"] {
    width: 100%;
    min-height: 50px;

    padding: 12px 14px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2px;

    background: #080808;
    color: #fff;

    font: inherit;
    font-size: 16px;

    outline: none;

    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.cs-form-field input:focus {
    border-color: #ff00aa;

    box-shadow:
        0 0 0 2px rgba(255, 0, 170, 0.16);
}

.cs-form-field input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}


/* Date/time browser controls */

.cs-form-field input[type="date"],
.cs-form-field input[type="time"] {
    color-scheme: dark;
}


/* Radio choices */

.cs-form-field fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.cs-choice-row {
    display: flex;
    gap: 12px;
}

.cs-choice {
    flex: 1;

    display: flex !important;
    align-items: center;
    gap: 10px;

    min-height: 50px;

    margin: 0 !important;
    padding: 12px 16px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2px;

    background: #080808;

    cursor: pointer;

    transition:
        border-color 140ms ease,
        background 140ms ease;
}

.cs-choice:hover {
    border-color: rgba(255, 0, 170, 0.55);
}

.cs-choice input {
    width: 18px;
    height: 18px;

    margin: 0;

    accent-color: #ff00aa;
}

.cs-choice span {
    color: #fff;

    font-size: 15px;
    font-weight: 700;
}


/* Honeypot */

.cs-form-honeypot {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    opacity: 0;
    pointer-events: none;
}


/* Submit */

.cs-consultation-submit {
    width: 100%;
    margin-top: 26px;
    min-height: 54px;
}

.cs-consultation-submit:disabled {
    opacity: 0.55;
    cursor: wait;
}

.cs-modal-note {
    margin: 14px 0 0;

    color: rgba(255, 255, 255, 0.46);

    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}


/* Error / success */

.cs-consultation-message {
    margin-top: 20px;
    padding: 14px 16px;

    border: 1px solid rgba(255, 70, 120, 0.5);

    background: rgba(255, 0, 90, 0.08);
    color: #fff;

    font-size: 14px;
    line-height: 1.5;
}

.cs-consultation-error {
    color: #fff;
}

.cs-consultation-success {
    padding: 24px 12px 8px;

    text-align: center;
}

.cs-consultation-success .cs-result-label {
    display: block;
    margin-bottom: 10px;
}

.cs-consultation-success h2 {
    margin: 0 0 12px;

    color: #fff;

    font-size: 36px;
}

.cs-consultation-success p {
    max-width: 520px;
    margin: 0 auto 24px;

    color: rgba(255, 255, 255, 0.72);

    line-height: 1.65;
}


/* Prevent page scrolling while modal is open */

body.cs-modal-open {
    overflow: hidden;
}


/* Mobile */

@media (max-width: 640px) {

    .cs-modal {
        align-items: flex-start;

        padding: 12px;
    }

    .cs-modal-panel {
        max-height: calc(100vh - 24px);

        padding: 32px 20px 24px;
    }

    .cs-modal-header {
        padding: 12px 12px 24px;
    }

    .cs-modal-header h2 {
        font-size: 30px;
    }

    .cs-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cs-form-field-full {
        grid-column: auto;
    }

    .cs-choice-row {
        flex-direction: column;
    }

}


/* =========================================================
   CALCULATOR — NEXT STEP CTA
   ========================================================= */

.cs-result-next-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    margin-top: 30px;
    padding: 26px 28px;

    border-top: 1px solid rgba(255, 0, 170, 0.32);
    border-bottom: 1px solid rgba(255, 0, 170, 0.18);

    background:
        linear-gradient(
            90deg,
            rgba(255, 0, 170, 0.07),
            rgba(255, 0, 170, 0.015)
        );
}

.cs-result-next-step-copy {
    min-width: 0;
}

.cs-result-next-step-copy .cs-result-label {
    display: block;
    margin-bottom: 7px;
}

.cs-result-next-step-copy h3 {
    margin: 0 0 7px;

    color: #fff;

    font-size: clamp(21px, 3vw, 28px);
    line-height: 1.15;
}

.cs-result-next-step-copy p {
    max-width: 620px;
    margin: 0;

    color: rgba(255, 255, 255, 0.68);

    font-size: 14px;
    line-height: 1.55;
}

.cs-result-consultation {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 700px) {

    .cs-result-next-step {
        flex-direction: column;
        align-items: stretch;
    }

    .cs-result-consultation {
        width: 100%;
    }

}
