/* ==========================================================
   Floating Side Buttons (Contact Us / Download Brochure)
   ========================================================== */

/* Prevent horizontal scroll that could push the page/buttons outside
   the viewport on mobile (e.g. from third-party widgets, wide images). */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.nh-floating-buttons {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1045;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
    max-width: 100vw;
}

.nh-floating-buttons .nh-fab {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 78px;
    padding: 14px 8px;
    background-color: #5c9269;
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.2px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.nh-floating-buttons .nh-fab i {
    font-size: 20px;
    line-height: 1;
}

.nh-floating-buttons .nh-fab:hover,
.nh-floating-buttons .nh-fab:focus-visible {
    background-color: #1D4026;
    color: #ffffff;
    box-shadow: -4px 3px 14px rgba(0, 0, 0, 0.25);
}

/* Mobile: keep the side-attached rectangular look, just smaller + icon-only */
@media (max-width: 575.98px) {
    .nh-floating-buttons {
        gap: 3px;
    }
    .nh-floating-buttons .nh-fab {
        width: 46px;
        padding: 12px 6px;
        font-size: 0;
    }
    .nh-floating-buttons .nh-fab i {
        font-size: 18px;
    }
    .nh-floating-buttons .nh-fab .nh-fab__label {
        display: none;
    }
}

/* ==========================================================
   Modal
   ========================================================== */

.nh-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 32, 21, 0.65);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nh-modal.is-open {
    display: flex;
    opacity: 1;
}

.nh-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    /* Allow the custom dropdown to extend beyond the dialog edges. */
    overflow: visible;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.25s ease;
}

.nh-modal.is-open .nh-modal__dialog {
    transform: translateY(0) scale(1);
}

.nh-modal__header {
    background: #1D4026;
    color: #ffffff;
    padding: 18px 48px 18px 24px;
    position: relative;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.nh-modal__title {
    margin: 0;
    font-family: 'Philosopher', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.nh-modal__subtitle {
    margin: 4px 0 0;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #c7c7c7;
}

.nh-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.nh-modal__close:hover,
.nh-modal__close:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

.nh-modal__body {
    padding: 20px 24px 24px;
}

.nh-modal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.nh-modal__row--full {
    grid-template-columns: 1fr;
}

.nh-modal__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nh-modal__input,
.nh-modal__textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #333;
    background: #fbfbfb;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nh-modal__input:focus,
.nh-modal__textarea:focus {
    outline: none;
    border-color: #5c9269;
    background: #ffffff;
}

.nh-modal__input.is-invalid,
.nh-modal__textarea.is-invalid {
    border-color: #E22D2D;
    background: #fff5f5;
    box-shadow: 0 0 0 2px rgba(226, 45, 45, 0.12);
}

/* ==========================================================
   Custom country dropdown (always opens below)
   ========================================================== */

.nh-select {
    position: relative;
    width: 100%;
}

.nh-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    background: #fbfbfb;
    color: #333;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nh-select__trigger:focus,
.nh-select.is-open .nh-select__trigger {
    outline: none;
    border-color: #5c9269;
    background: #ffffff;
}

.nh-select__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #9a9a9a;
}

.nh-select__value.nh-select__value--filled {
    color: #333;
}

.nh-select__chevron {
    font-size: 12px;
    color: #696969;
    transition: transform 0.2s ease;
}

.nh-select.is-open .nh-select__chevron {
    transform: rotate(180deg);
}

.nh-select.is-invalid .nh-select__trigger {
    border-color: #E22D2D;
    background: #fff5f5;
    box-shadow: 0 0 0 2px rgba(226, 45, 45, 0.12);
}

.nh-select__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.nh-select__menu[hidden] {
    display: none;
}

.nh-select__search-wrap {
    position: relative;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.nh-select__search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #9a9a9a;
    pointer-events: none;
}

.nh-select__search {
    width: 100%;
    padding: 7px 10px 7px 28px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    background: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #333;
    outline: none;
}

.nh-select__search:focus {
    border-color: #5c9269;
}

.nh-select__options {
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

.nh-select__option {
    padding: 8px 14px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.nh-select__option[hidden] { display: none; }

.nh-select__option:hover,
.nh-select__option.is-active {
    background: #eef5f0;
    color: #1D4026;
}

.nh-select__option.is-selected {
    background: #5c9269;
    color: #ffffff;
}

.nh-select__empty {
    margin: 0;
    padding: 14px;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #9a9a9a;
}

/* Scrollbar inside the options list */
.nh-select__options::-webkit-scrollbar { width: 8px; }
.nh-select__options::-webkit-scrollbar-thumb { background: #c9d6cd; border-radius: 4px; }
.nh-select__options::-webkit-scrollbar-thumb:hover { background: #5c9269; }

/* Contact-page variant (outside our modal): match surrounding form styling */
.nh-select--inline .nh-select__trigger {
    background: transparent;
    border: none;
    border-bottom: 1px solid #c9c9c9;
    border-radius: 0;
    padding: 10px 24px 10px 0;
    font-size: 15px;
}

.nh-select--inline .nh-select__trigger:focus,
.nh-select--inline.is-open .nh-select__trigger {
    border-bottom-color: #5c9269;
    background: transparent;
    box-shadow: none;
}

.nh-select--inline.is-invalid .nh-select__trigger {
    border-bottom-color: #E22D2D;
    background: transparent;
    box-shadow: none;
}

.nh-select--inline .nh-select__chevron {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

.nh-select--inline.is-open .nh-select__chevron {
    transform: translateY(-50%) rotate(180deg);
}

.nh-modal__error {
    display: block;
    min-height: 16px;
    margin-top: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    line-height: 1.3;
    color: #E22D2D;
}

.nh-modal__error:empty {
    min-height: 0;
    margin-top: 0;
}

.nh-modal__textarea {
    resize: vertical;
    min-height: 96px;
    font-family: 'Lato', sans-serif;
}

.nh-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 28px;
    background: #5c9269;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

.nh-modal__submit:hover,
.nh-modal__submit:focus-visible {
    background: #1D4026;
    outline: none;
}

.nh-modal__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.nh-modal__msg {
    margin: 12px 0 0;
    font-size: 13px;
    font-family: 'Lato', sans-serif;
    min-height: 18px;
}

.nh-modal__msg--error { color: #E22D2D; }
.nh-modal__msg--success { color: #20bd3c; }

@media (max-width: 575.98px) {
    .nh-modal {
        padding: 12px;
        align-items: center;
    }
    .nh-modal__dialog {
        max-width: 100%;
        border-radius: 14px;
    }
    .nh-modal__header {
        padding: 16px 44px 16px 18px;
    }
    .nh-modal__title {
        font-size: 17px;
    }
    .nh-modal__subtitle {
        font-size: 12px;
    }
    .nh-modal__body {
        padding: 16px 18px 20px;
    }
    .nh-modal__row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }
    .nh-modal__input,
    .nh-modal__textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    .nh-modal__submit {
        width: 100%;
        padding: 12px 20px;
    }
}

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