/* NP-Chat Contact Form Styles */

/* ================================================================
   BASE STYLES
   ================================================================ */
.np-chat-contact-form-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.np-chat-contact-form-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

/* ================================================================
   HEADER
   ================================================================ */
.np-chat-contact-form-header {
    padding: 30px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.np-chat-contact-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.np-chat-contact-form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
    line-height: 1.6;
}

/* ================================================================
   FORM
   ================================================================ */
.np-contact-form {
    padding: 35px;
}

.np-contact-form-group {
    margin-bottom: 25px;
}

.np-contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.np-contact-form-group .required {
    color: #dc2626;
    margin-left: 2px;
}

.np-contact-form-group input,
.np-contact-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.np-contact-form-group input:focus,
.np-contact-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}

.np-contact-form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.np-contact-character-count {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    text-align: right;
}

.np-contact-error {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #dc2626;
    min-height: 20px;
}

.np-contact-form-group.error input,
.np-contact-form-group.error textarea {
    border-color: #dc2626;
}

/* ================================================================
   SUBMIT BUTTON
   ================================================================ */
.np-contact-submit-btn {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.np-contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

.np-contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ================================================================
   LOADING
   ================================================================ */
.np-contact-loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
    font-weight: 500;
}

.np-contact-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: np-spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes np-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================================================
   SUCCESS
   ================================================================ */
.np-contact-success {
    padding: 40px 35px;
    text-align: center;
}

.np-contact-success .success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.np-contact-success h3 {
    margin: 0 0 15px 0;
    color: #065f46;
    font-size: 24px;
}

.np-contact-success p {
    margin: 10px 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

.np-contact-success #np-contact-ticket-message {
    font-size: 18px;
    font-weight: 600;
    color: #1a56db;
    background: #e8f0fe;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
    margin: 10px auto;
}

.np-contact-new-message-btn {
    padding: 10px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.np-contact-new-message-btn:hover {
    background: #5a6fd6;
}

/* ================================================================
   IMAGE UPLOAD
   ================================================================ */
.np-contact-image-upload-group .np-contact-image-upload-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

.np-contact-upload-btn {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.np-contact-upload-btn:hover {
    background: #5a6fd6;
}

.np-contact-file-name {
    font-size: 13px;
    color: #6b7280;
    flex: 1;
}

.np-contact-remove-file {
    padding: 4px 12px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.np-contact-image-preview {
    margin-top: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.np-contact-image-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 4px;
    display: block;
}

.np-contact-form-group .description {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

/* ================================================================
   POPUP OVERLAY
   ================================================================ */
#np-contact-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    margin: 0 !important;
}

#np-contact-popup-overlay .np-chat-contact-form-wrapper {
    max-height: 90vh !important;
    overflow-y: auto !important;
    border-radius: 16px !important;
    background: white !important;
}

/* ================================================================
   POPUP CLOSE BUTTON
   ================================================================ */
#np-contact-popup-close {
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

#np-contact-popup-close:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1) !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
    .np-chat-contact-form-header {
        padding: 20px;
    }
    .np-chat-contact-form-header h2 {
        font-size: 22px;
    }
    .np-contact-form {
        padding: 20px;
    }
    .np-contact-submit-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    #np-contact-popup-overlay {
        padding: 10px !important;
    }
    #np-contact-popup-close {
        top: 8px !important;
        right: 12px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 18px !important;
    }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
    #np-contact-popup-overlay {
        display: none !important;
    }
}



