/* Shared contact / inquiry modal styling */
/* Header z-index: 11000 !important (navbar-compact.css) — modal must use !important too */
.nish-contact-modal {
    z-index: 12050 !important;
}

body.modal-open .modal-backdrop.show {
    z-index: 12049 !important;
}

.nish-contact-result-modal {
    z-index: 12050 !important;
}

.nish-contact-result-modal .modal-content {
    background-color: #fff;
    opacity: 1;
}

.nish-contact-modal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: 1rem auto;
}

.nish-contact-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
}

.nish-contact-modal .modal-header {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 45%, #e63946 100%);
    padding: 1rem 1.25rem;
    flex-shrink: 0;
}

.nish-contact-modal .modal-title {
    font-size: 1.05rem;
    line-height: 1.4;
}

.nish-contact-modal .modal-body {
    padding: 1rem 1.25rem;
    background: #fafbfc;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.nish-contact-modal .nish-contact-product-banner {
    background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    color: #1e3a5f;
}

.nish-contact-modal .nish-contact-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.35rem;
}

.nish-contact-modal .form-control,
.nish-contact-modal .form-select,
.nish-contact-modal .nish-native-select {
    border-radius: 10px;
    border-color: #d1d5db;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    display: block;
}

.nish-hear-about-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nish-hear-about-field .form-label {
    display: block;
    width: 100%;
}

.nish-hear-about-field .form-select,
.nish-hear-about-field select {
    appearance: auto;
    background-color: #fff;
    background-image: none;
    line-height: 1.5;
    min-height: calc(1.5em + 1.3rem + 2px);
}

.nish-contact-modal .form-control:focus,
.nish-contact-modal .form-select:focus,
.nish-contact-modal .nish-native-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.nish-contact-modal .modal-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nish-contact-modal .btn-whatsapp-contact {
    background: #25d366;
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 0.55rem 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nish-contact-modal .btn-whatsapp-contact:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.nish-contact-modal .nish-contact-hint {
    font-size: 0.72rem;
    color: #6b7280;
    max-width: 220px;
    line-height: 1.3;
}

@media (max-width: 575.98px) {
    .nish-contact-modal .modal-dialog {
        max-height: calc(100dvh - 1rem);
        margin: 0.5rem;
    }

    .nish-contact-modal .modal-content {
        max-height: calc(100dvh - 1rem);
    }

    .nish-contact-modal .nish-contact-hint {
        display: none;
    }
}

.nish-contact-modal .nish-contact-submit {
    border-radius: 10px;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
}
