/*
 * Consultation page - method selector + embedded HubSpot forms.
 * Loaded only by site/templates/consultation.php (English site).
 * Colours mirror assets/sass/variables.scss: $turquoise #01adb9,
 * $turquoise-lighter #e9fafb, $pink #e51e71, $grey-dark #333333, $grey #777777.
 */

/* ---------- Method selector ---------- */

.nl-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -8px;
}

.nl-method {
    display: flex;
    flex: 1 1 210px;
    max-width: 280px;
    padding: 0 8px;
    margin-bottom: 16px;
}

.nl-method-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.nl-method-label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 26px 18px 22px;
    background-color: #ffffff;
    border: 2px solid #e6eaf0;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(51, 51, 51, 0.06);
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nl-method-label:hover {
    border-color: #01adb9;
    box-shadow: 0 8px 18px rgba(1, 173, 185, 0.18);
    transform: translateY(-3px);
}

.nl-method-input:focus + .nl-method-label {
    outline: 3px solid rgba(1, 173, 185, 0.45);
    outline-offset: 2px;
}

.nl-method-input:focus:not(:focus-visible) + .nl-method-label {
    outline: none;
}

.nl-method-input:checked + .nl-method-label {
    background-color: #e9fafb;
    border-color: #01adb9;
    box-shadow: 0 8px 20px rgba(1, 173, 185, 0.22);
}

.nl-method-input:disabled + .nl-method-label {
    background-color: #f7f8fa;
    border-color: #e6eaf0;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.nl-method-input:disabled + .nl-method-label .nl-method-icon {
    color: #777777;
    background-color: #eceff3;
    opacity: .6;
}

.nl-method-input:disabled + .nl-method-label .nl-method-title {
    color: #777777;
}

.nl-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    color: #01adb9;
    background-color: #e9fafb;
    border-radius: 50%;
    transition: color .18s ease, background-color .18s ease;
}

.nl-method-input:checked + .nl-method-label .nl-method-icon {
    color: #ffffff;
    background-color: #01adb9;
}

.nl-method-icon svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nl-method-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: #333333;
}

.nl-method-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nl-method-note {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    color: #5f6670;
}

.nl-method-check {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #ffffff;
    background-color: #01adb9;
    border-radius: 50%;
}

.nl-method-input:checked + .nl-method-label .nl-method-check {
    display: flex;
}

.nl-method-check svg {
    display: block;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- HubSpot form ---------- */

.nl-hsform {
    max-width: 720px;
    margin: 0 auto;
}

.nl-hsform-status {
    margin: 0;
    color: #777777;
    text-align: center;
}

.nl-hsform fieldset {
    max-width: none !important;
}

.nl-hsform .form-columns-1,
.nl-hsform .form-columns-2,
.nl-hsform .form-columns-3 {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.nl-hsform .form-columns-1 > div,
.nl-hsform .form-columns-2 > div,
.nl-hsform .form-columns-3 > div {
    flex: 1 1 240px;
    width: auto !important;
    padding: 0 8px;
    float: none !important;
}

.nl-hsform .hs-form-field {
    margin-bottom: 18px;
}

.nl-hsform .hs-form-field > .input {
    margin: 0 !important;
}

.nl-hsform label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #333333;
}

.nl-hsform .hs-form-required {
    color: #e51e71;
}

.nl-hsform .hs-field-desc {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #777777;
}

.nl-hsform .hs-input {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    min-height: 44px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 16px;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #d7dde6;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.nl-hsform .hs-input:focus {
    border-color: #01adb9;
    box-shadow: 0 0 0 3px rgba(1, 173, 185, 0.18);
    outline: none;
}

.nl-hsform textarea.hs-input {
    min-height: 110px;
    resize: vertical;
}

.nl-hsform .hs-input.error,
.nl-hsform .hs-input.invalid {
    border-color: #b42318;
}

/* International phone field: HubSpot renders a country select next to the
   number input and sizes them with its own !important rules. */
.nl-hsform .hs-fieldtype-intl-phone {
    display: flex;
    align-items: center;
}

.nl-hsform .hs-fieldtype-intl-phone > select.hs-input {
    flex: 0 0 auto;
    width: 38% !important;
    margin-right: 8px !important;
}

.nl-hsform .hs-fieldtype-intl-phone > input.hs-input {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
}

/* Checkbox and radio lists */
.nl-hsform .inputs-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nl-hsform .inputs-list > li {
    margin-bottom: 8px;
}

.nl-hsform .inputs-list label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

.nl-hsform .inputs-list input[type="checkbox"],
.nl-hsform .inputs-list input[type="radio"] {
    flex: 0 0 auto;
    width: auto !important;
    min-height: 0;
    margin: 3px 10px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* HubSpot indents the consent label with a 20px margin of its own. */
.nl-hsform .hs-form-booleancheckbox-display > span {
    margin-left: 0 !important;
}

/* Errors */
.nl-hsform .hs-error-msgs {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.nl-hsform .hs-error-msgs label,
.nl-hsform .hs-error-msg {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    color: #b42318;
}

/* Consent and legal text */
.nl-hsform .legal-consent-container,
.nl-hsform .hs-richtext {
    font-size: 14px;
    line-height: 1.5;
    color: #777777;
}

.nl-hsform .legal-consent-container a,
.nl-hsform .hs-richtext a {
    color: #01adb9;
    text-decoration: underline;
}

/* Submit button - matches .btn-lg.btn-secondary elsewhere on the site */
.nl-hsform .actions {
    margin: 0;
    padding: 0;
    text-align: center;
}

.nl-hsform input[type="submit"],
.nl-hsform .hs-button {
    display: inline-block;
    width: auto !important;
    min-width: 180px;
    min-height: 42px;
    margin-top: 12px;
    padding: 9px 32px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #e51e71;
    border: 0;
    border-radius: 21px;
    box-shadow: 0 2px 4px rgba(51, 51, 51, 0.4);
    cursor: pointer;
    transition: background-color .15s ease;
}

.nl-hsform input[type="submit"]:hover,
.nl-hsform .hs-button:hover {
    background-color: #c9185f;
}

.nl-hsform input[type="submit"]:focus,
.nl-hsform .hs-button:focus {
    outline: 3px solid rgba(229, 30, 113, 0.4);
    outline-offset: 2px;
}

/* Inline thank-you message */
.nl-hsform .submitted-message {
    padding: 28px 24px;
    font-size: 17px;
    line-height: 1.6;
    color: #333333;
    text-align: center;
    background-color: #e9fafb;
    border-radius: 12px;
}

@media (max-width: 575px) {
    .nl-method {
        flex-basis: 100%;
        max-width: none;
    }

    .nl-method-label {
        flex-direction: row;
        align-items: center;
        padding: 16px 48px 16px 18px;
        text-align: left;
    }

    .nl-method-icon {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        margin-bottom: 0;
        margin-right: 14px;
    }

    .nl-method-icon svg {
        width: 22px;
        height: 22px;
    }

    .nl-method-text {
        align-items: flex-start;
    }
}
