.mp-contact-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    border: 1px solid #e9ecef;
}

.mp-contact-container h3 {
    margin-top: 0;
    color: var(--dauk-blue, #002f43);
}

.mp-search-box {
    position: relative;
    margin-bottom: 20px;
}

#mp-constituency-search {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

#mp-constituency-search:focus {
    border-color: var(--dauk-teal, #00a0b0);
    outline: none;
}

.mp-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.mp-search-results div {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
}

.mp-search-results div:last-child {
    border-bottom: none;
}

.mp-search-results div:hover {
    background: #f8f9fa;
    color: var(--dauk-teal, #00a0b0);
}

.mp-details-preview {
    background: #e7f5f7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--dauk-teal, #00a0b0);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

#mp-form-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

#mp-form-response.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

#mp-form-response.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.mp-contact-notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffeeba;
    text-align: center;
    margin: 20px 0;
}

/* Modal Styles */
.mp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.mp-modal.is-open {
    display: flex;
}

.mp-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.mp-modal__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mp-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.mp-modal__close:hover {
    color: #333;
}

.mp-modal__content h3 {
    margin: 0 0 10px 0;
    color: var(--dauk-blue, #002f43);
    font-size: 1.5rem;
}

.mp-modal__intro {
    color: #666;
    margin-bottom: 20px;
}

.mp-modal__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.mp-modal__option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.mp-modal__option:hover {
    border-color: var(--dauk-teal, #00a0b0);
    background: #f8f9fa;
}

.mp-modal__option--primary {
    border-color: var(--dauk-teal, #00a0b0);
    background: #e7f5f7;
}

.mp-modal__option--primary:hover {
    background: #d0eef2;
}

.mp-modal__option-icon {
    width: 44px;
    height: 44px;
    background: var(--dauk-blue, #002f43);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.mp-modal__option-label {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

.mp-modal__option-desc {
    font-size: 0.85rem;
    color: #666;
    display: block;
}

.mp-modal__divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #999;
    font-size: 0.9rem;
}

.mp-modal__divider::before,
.mp-modal__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.mp-modal__divider span {
    padding: 0 15px;
}

.mp-modal__copy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mp-modal__copy-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.mp-modal__copy-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.mp-modal__hint {
    margin-top: 20px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #856404;
    text-align: center;
}

/* Prevent body scroll when modal is open */
body.mp-modal-open {
    overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 500px) {
    .mp-modal__content {
        padding: 20px;
    }

    .mp-modal__option {
        padding: 12px;
    }

    .mp-modal__option-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .mp-modal__copy-btn {
        min-width: 100%;
    }
}
