/* ============================================
   MMC Ticket Submission Form Widget Styles
   ============================================ */

.mmc-ticket-form {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Form Title */
.mmc-ticket-form-title {
    color: #1e3a5f;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

/* Form Fields */
.mmc-ticket-field {
    margin-bottom: 20px;
}

/* Labels */
.mmc-ticket-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.mmc-ticket-label .required {
    color: #ef4444;
    font-weight: 700;
    margin-left: 3px;
}

/* Field Hints */
.mmc-field-hint {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}

/* Input Fields */
.mmc-ticket-input,
.mmc-ticket-select,
.mmc-ticket-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #1f2937;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.mmc-ticket-input:focus,
.mmc-ticket-select:focus,
.mmc-ticket-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mmc-ticket-input[readonly] {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

/* Error States */
.mmc-ticket-input.mmc-ticket-error,
.mmc-ticket-select.mmc-ticket-error,
.mmc-ticket-textarea.mmc-ticket-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.mmc-ticket-input.mmc-ticket-error:focus,
.mmc-ticket-select.mmc-ticket-error:focus,
.mmc-ticket-textarea.mmc-ticket-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Textarea */
.mmc-ticket-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Select Dropdown */
.mmc-ticket-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Form Actions */
.mmc-ticket-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Submit Button */
.mmc-ticket-submit {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #10b981;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.mmc-ticket-submit:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.mmc-ticket-submit:active {
    transform: translateY(0);
}

.mmc-ticket-submit:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Status Messages */
.mmc-ticket-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.mmc-ticket-message.success {
    color: #065f46;
    background-color: #d1fae5;
    border: 1px solid #34d399;
}

.mmc-ticket-message.error {
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #f87171;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mmc-ticket-form {
        padding: 20px;
    }
    
    .mmc-ticket-form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .mmc-ticket-field {
        margin-bottom: 15px;
    }
    
    .mmc-ticket-submit {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .mmc-ticket-form {
        padding: 15px;
    }
    
    .mmc-ticket-form-title {
        font-size: 18px;
    }
    
    .mmc-ticket-input,
    .mmc-ticket-select,
    .mmc-ticket-textarea {
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
}
